use of com.datastax.oss.dsbulk.workflow.commons.format.statement.MappedBoundStatementPrinter in project dsbulk by datastax.
the class LogSettings method newLogManager.
public LogManager newLogManager(CqlSession session, boolean trackPositions) {
StatementFormatter statementFormatter = StatementFormatter.builder().withMaxQueryStringLength(maxQueryStringLength).withMaxBoundValueLength(maxBoundValueLength).withMaxBoundValues(maxBoundValues).withMaxInnerStatements(maxInnerStatements).addStatementPrinters(new MappedBoundStatementPrinter()).build();
RowFormatter rowFormatter = new RowFormatter(maxResultSetValueLength, maxResultSetValues);
return new LogManager(session, operationDirectory, errorThreshold, queryWarningsThreshold, trackPositions, statementFormatter, level, rowFormatter);
}
Aggregations