- All Implemented Interfaces:
JdbcLogger
A logger that delegates to
Logger.-
Field Summary
FieldsFields inherited from class org.seasar.doma.jdbc.AbstractJdbcLogger
defaultLevel -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance.UtilLoggingJdbcLogger(Level level) Creates an instance with the specified log level.UtilLoggingJdbcLogger(Level level, Logger logger) Creates an instance with the specified log level and logger. -
Method Summary
Methods inherited from class org.seasar.doma.jdbc.AbstractJdbcLogger
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, logTransactionSavepointRolledback
-
Field Details
-
logger
-
-
Constructor Details
-
UtilLoggingJdbcLogger
public UtilLoggingJdbcLogger()Creates an instance.The log level is
Level.INFO. The logger name is the full qualified name ofUtilLoggingJdbcLogger. -
UtilLoggingJdbcLogger
Creates an instance with the specified log level.The logger name is the full qualified name of
UtilLoggingJdbcLogger.- Parameters:
level- the log level
-
UtilLoggingJdbcLogger
Creates an instance with the specified log level and logger.- Parameters:
level- the log levellogger- the logger
-
-
Method Details
-
log
protected void log(Level level, String callerClassName, String callerMethodName, Throwable throwable, Supplier<String> messageSupplier) Description copied from class:AbstractJdbcLoggerLogs an error or an exception.- Specified by:
login classAbstractJdbcLogger<Level>- Parameters:
level- the log levelcallerClassName- the caller class namecallerMethodName- the caller method namethrowable- the error or exceptionmessageSupplier- the message supplier
-