| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private static final Logger | |
| private static final Logger | |
| private final long | logSlowQuery
Configuration value that indicates slow query. |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SqlStatementLogger(boolean
Should we log to STDOUT in addition to our internal logger? logToStdout, boolean Should we format the statements in the console and log format)Constructs a new |
| public | SqlStatementLogger(boolean
Should we log to STDOUT in addition to our internal logger? logToStdout, boolean Should we format the statements in the console and log format, boolean Should we highlight the statements in the console highlight)Constructs a new |
| public | SqlStatementLogger(boolean
Should we log to STDOUT in addition to our internal logger? logToStdout, boolean Should we format the statements in the console and log format, boolean Should we highlight the statements in the console highlight, long Should we logs query which executed slower than specified milliseconds. 0 - disabled. logSlowQuery)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public boolean | |
| public boolean | Returns: True if we are currently logging to stdout; false otherwise.Are we currently logging to stdout? |
| public void | logSlowQuery(Statement
SQL statement. statement, long Start time in nanoseconds. startTimeNanos, JdbcSessionContext context)Log a slow SQL query |
| public void | logSlowQuery(String
The SQL query. sql, long Start time in nanoseconds. startTimeNanos, JdbcSessionContext context)Log a slow SQL query |
| private void | logSlowQuery(Supplier<String>
Supplier to generate The SQL query. sqlSupplier, long Start time in nanoseconds. startTimeNanos, JdbcSessionContext context)
|
| public void | |
| public void | logStatement(String
The SQL statement. statement, Formatter The formatter to use. formatter)Log a SQL statement string using the specified formatter |
| format | back to summary |
|---|---|
| private final boolean format | |
| highlight | back to summary |
|---|---|
| private final boolean highlight | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| LOG_SLOW | back to summary |
|---|---|
| private static final Logger LOG_SLOW | |
| logSlowQuery | back to summary |
|---|---|
| private final long logSlowQuery Configuration value that indicates slow query. (In milliseconds) 0 - disabled. | |
| logToStdout | back to summary |
|---|---|
| private final boolean logToStdout | |
| SqlStatementLogger | back to summary |
|---|---|
| public SqlStatementLogger() Constructs a new | |
| SqlStatementLogger | back to summary |
|---|---|
| public SqlStatementLogger(boolean logToStdout, boolean format) Constructs a new
| |
| SqlStatementLogger | back to summary |
|---|---|
| public SqlStatementLogger(boolean logToStdout, boolean format, boolean highlight) Constructs a new
| |
| SqlStatementLogger | back to summary |
|---|---|
| public SqlStatementLogger(boolean logToStdout, boolean format, boolean highlight, long logSlowQuery) Constructs a new
| |
| getLogSlowQuery | back to summary |
|---|---|
| public long getLogSlowQuery() | |
| isFormat | back to summary |
|---|---|
| public boolean isFormat() | |
| isLogToStdout | back to summary |
|---|---|
| public boolean isLogToStdout() Are we currently logging to stdout?
| |
| logSlowQuery | back to summary |
|---|---|
| public void logSlowQuery(Statement statement, long startTimeNanos, JdbcSessionContext context) Log a slow SQL query
| |
| logSlowQuery | back to summary |
|---|---|
| public void logSlowQuery(String sql, long startTimeNanos, JdbcSessionContext context) Log a slow SQL query
| |
| logSlowQuery | back to summary |
|---|---|
private void logSlowQuery(Supplier<String> sqlSupplier, long startTimeNanos, JdbcSessionContext context)
| |
| logStatement | back to summary |
|---|---|
| public void logStatement(String statement) Log a SQL statement string.
| |
| logStatement | back to summary |
|---|---|
| public void logStatement(String statement, Formatter formatter) Log a SQL statement string using the specified formatter
| |