public class UtilLoggingJdbcLogger extends AbstractJdbcLogger<java.util.logging.Level>
Logger.| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
logger |
defaultLevel| Constructor and Description |
|---|
UtilLoggingJdbcLogger()
Creates an instance.
|
UtilLoggingJdbcLogger(java.util.logging.Level level)
Creates an instance with the specified log level.
|
UtilLoggingJdbcLogger(java.util.logging.Level level,
java.util.logging.Logger logger)
Creates an instance with the specified log level and logger.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(java.util.logging.Level level,
java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Logs an error or an exception.
|
getSqlText, logAutoCommitEnablingFailure, logAutoCommitEnablingFailure, logConnectionClosingFailure, logConnectionClosingFailure, logDaoMethodEntering, logDaoMethodEntering, logDaoMethodExiting, logDaoMethodExiting, logDaoMethodThrowing, logDaoMethodThrowing, logResultSetClosingFailure, logResultSetClosingFailure, logSql, logSql, logSqlExecutionSkipping, logSqlExecutionSkipping, logStatementClosingFailure, logStatementClosingFailure, logTransactionBegun, logTransactionBegun, logTransactionCommitted, logTransactionCommitted, logTransactionEnded, logTransactionEnded, logTransactionIsolationSettingFailure, logTransactionIsolationSettingFailure, logTransactionRollbackFailure, logTransactionRollbackFailure, logTransactionRolledback, logTransactionRolledback, logTransactionSavepointCreated, logTransactionSavepointCreated, logTransactionSavepointReleased, logTransactionSavepointReleased, logTransactionSavepointRolledback, logTransactionSavepointRolledbackpublic UtilLoggingJdbcLogger()
The log level is Level.INFO. The logger name is the full qualified name of UtilLoggingJdbcLogger.
public UtilLoggingJdbcLogger(java.util.logging.Level level)
The logger name is the full qualified name of UtilLoggingJdbcLogger.
level - the log levelpublic UtilLoggingJdbcLogger(java.util.logging.Level level,
java.util.logging.Logger logger)
level - the log levellogger - the loggerprotected void log(java.util.logging.Level level,
java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
AbstractJdbcLoggerlog in class AbstractJdbcLogger<java.util.logging.Level>level - the log levelcallerClassName - the caller class namecallerMethodName - the caller method namethrowable - the error or exceptionmessageSupplier - the message supplier