Package org.mariadb.jdbc.util.log
Class JdkLogger
- java.lang.Object
-
- org.mariadb.jdbc.util.log.JdkLogger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String msg)Log a message at the DEBUG level.voiddebug(String format, Object... arguments)Log a message at the DEBUG level.voiddebug(String msg, Throwable t)Log a message with an error at the DEBUG level.voiderror(String msg)Log a message at the ERROR level.voiderror(String format, Object... arguments)Log a message at the ERROR level.voiderror(String msg, Throwable t)Log a message with an error at the ERROR level.StringgetName()Logger namevoidinfo(String msg)Log a message at the INFO level.voidinfo(String format, Object... arguments)Log a message at the INFO level.voidinfo(String msg, Throwable t)Log a message with an error at the INFO level.booleanisDebugEnabled()must DEBUG level message be loggedbooleanisErrorEnabled()Must ERROR level be loggedbooleanisInfoEnabled()Must INFO level be loggedbooleanisTraceEnabled()Must TRACE level be loggedbooleanisWarnEnabled()Must WARN level be loggedvoidtrace(String msg)Log a message at the TRACE level.voidtrace(String format, Object... arguments)Log a message at the TRACE level.voidtrace(String msg, Throwable t)Log a message with an error at the TRACE level.voidwarn(String msg)Log a message at the WARN level.voidwarn(String format, Object... arguments)Log a message at the WARNING level.voidwarn(String msg, Throwable t)Log a message with an error at the WARNING level.
-
-
-
Constructor Detail
-
JdkLogger
public JdkLogger(Logger logger)
Constructor- Parameters:
logger- java logger
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:LoggerMust TRACE level be logged- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- if TRACE level be logger
-
trace
public void trace(String msg)
Description copied from interface:LoggerLog a message at the TRACE level.
-
trace
public void trace(String format, Object... arguments)
Description copied from interface:LoggerLog a message at the TRACE level.
-
trace
public void trace(String msg, Throwable t)
Description copied from interface:LoggerLog a message with an error at the TRACE level.
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:Loggermust DEBUG level message be logged- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- are DEBUG message to be logged
-
debug
public void debug(String msg)
Description copied from interface:LoggerLog a message at the DEBUG level.
-
debug
public void debug(String format, Object... arguments)
Description copied from interface:LoggerLog a message at the DEBUG level.
-
debug
public void debug(String msg, Throwable t)
Description copied from interface:LoggerLog a message with an error at the DEBUG level.
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:LoggerMust INFO level be logged- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- if INFO level be logger
-
info
public void info(String msg)
Description copied from interface:LoggerLog a message at the INFO level.
-
info
public void info(String format, Object... arguments)
Description copied from interface:LoggerLog a message at the INFO level.
-
info
public void info(String msg, Throwable t)
Description copied from interface:LoggerLog a message with an error at the INFO level.
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:LoggerMust WARN level be logged- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- if WARN level be logger
-
warn
public void warn(String msg)
Description copied from interface:LoggerLog a message at the WARN level.
-
warn
public void warn(String format, Object... arguments)
Description copied from interface:LoggerLog a message at the WARNING level.
-
warn
public void warn(String msg, Throwable t)
Description copied from interface:LoggerLog a message with an error at the WARNING level.
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:LoggerMust ERROR level be logged- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- if ERROR level be logger
-
error
public void error(String msg)
Description copied from interface:LoggerLog a message at the ERROR level.
-
error
public void error(String format, Object... arguments)
Description copied from interface:LoggerLog a message at the ERROR level.
-
-