Top Fields Constructors Methods
com.mysql.cj.log

public Class Slf4JLogger

extends Object
implements Log
Class Inheritance
All Implemented Interfaces
com.mysql.cj.log.Log
Imports
org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isDebugEnabled()

Implements com.mysql.cj.log.Log.isDebugEnabled.

Is the 'debug' log level enabled?

public boolean
isErrorEnabled()

Implements com.mysql.cj.log.Log.isErrorEnabled.

Is the 'error' log level enabled?

public boolean
isFatalEnabled()

Implements com.mysql.cj.log.Log.isFatalEnabled.

Is the 'fatal' log level enabled?

public boolean
isInfoEnabled()

Implements com.mysql.cj.log.Log.isInfoEnabled.

Is the 'info' log level enabled?

public boolean
isTraceEnabled()

Implements com.mysql.cj.log.Log.isTraceEnabled.

Is the 'trace' log level enabled?

public boolean
isWarnEnabled()

Implements com.mysql.cj.log.Log.isWarnEnabled.

Is the 'warn' log level enabled?

public void
logDebug(Object
the message to log
msg
)

Implements com.mysql.cj.log.Log.logDebug.

Logs the given message instance using the 'debug' level

public void
logDebug(Object
the message to log
msg
,
Throwable
the throwable to log (may be null)
thrown
)

Implements com.mysql.cj.log.Log.logDebug.

Logs the given message and Throwable at the 'debug' level.

public void
logError(Object
the message to log
msg
)

Implements com.mysql.cj.log.Log.logError.

Logs the given message instance using the 'error' level

public void
logError(Object
the message to log
msg
,
Throwable
the throwable to log (may be null)
thrown
)

Implements com.mysql.cj.log.Log.logError.

Logs the given message and Throwable at the 'error' level.

public void
logFatal(Object
the message to log
msg
)

Implements com.mysql.cj.log.Log.logFatal.

Logs the given message instance using the 'fatal' level

public void
logFatal(Object
the message to log
msg
,
Throwable
the throwable to log (may be null)
thrown
)

Implements com.mysql.cj.log.Log.logFatal.

Logs the given message and Throwable at the 'fatal' level.

public void
logInfo(Object
the message to log
msg
)

Implements com.mysql.cj.log.Log.logInfo.

Logs the given message instance using the 'info' level

public void
logInfo(Object
the message to log
msg
,
Throwable
the throwable to log (may be null)
thrown
)

Implements com.mysql.cj.log.Log.logInfo.

Logs the given message and Throwable at the 'info' level.

public void
logTrace(Object
the message to log
msg
)

Implements com.mysql.cj.log.Log.logTrace.

Logs the given message instance using the 'trace' level

public void
logTrace(Object
the message to log
msg
,
Throwable
the throwable to log (may be null)
thrown
)

Implements com.mysql.cj.log.Log.logTrace.

Logs the given message and Throwable at the 'trace' level.

public void
logWarn(Object
the message to log
msg
)

Implements com.mysql.cj.log.Log.logWarn.

Logs the given message instance using the 'warn' level

public void
logWarn(Object
the message to log
msg
,
Throwable
the throwable to log (may be null)
thrown
)

Implements com.mysql.cj.log.Log.logWarn.

Logs the given message and Throwable at the 'warn' level.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private Logger log

Constructor Detail

Slf4JLoggerback to summary
public Slf4JLogger(String name)

Method Detail

isDebugEnabledback to summary
public boolean isDebugEnabled()

Implements com.mysql.cj.log.Log.isDebugEnabled.

Doc from com.mysql.cj.log.Log.isDebugEnabled.

Is the 'debug' log level enabled?

Returns:boolean

true if so.

Annotations
@Override
isErrorEnabledback to summary
public boolean isErrorEnabled()

Implements com.mysql.cj.log.Log.isErrorEnabled.

Doc from com.mysql.cj.log.Log.isErrorEnabled.

Is the 'error' log level enabled?

Returns:boolean

true if so.

Annotations
@Override
isFatalEnabledback to summary
public boolean isFatalEnabled()

Implements com.mysql.cj.log.Log.isFatalEnabled.

Doc from com.mysql.cj.log.Log.isFatalEnabled.

Is the 'fatal' log level enabled?

Returns:boolean

true if so.

Annotations
@Override
isInfoEnabledback to summary
public boolean isInfoEnabled()

Implements com.mysql.cj.log.Log.isInfoEnabled.

Doc from com.mysql.cj.log.Log.isInfoEnabled.

Is the 'info' log level enabled?

Returns:boolean

true if so.

Annotations
@Override
isTraceEnabledback to summary
public boolean isTraceEnabled()

Implements com.mysql.cj.log.Log.isTraceEnabled.

Doc from com.mysql.cj.log.Log.isTraceEnabled.

Is the 'trace' log level enabled?

Returns:boolean

true if so.

Annotations
@Override
isWarnEnabledback to summary
public boolean isWarnEnabled()

Implements com.mysql.cj.log.Log.isWarnEnabled.

Doc from com.mysql.cj.log.Log.isWarnEnabled.

Is the 'warn' log level enabled?

Returns:boolean

true if so.

Annotations
@Override
logDebugback to summary
public void logDebug(Object msg)

Implements com.mysql.cj.log.Log.logDebug.

Doc from com.mysql.cj.log.Log.logDebug.

Logs the given message instance using the 'debug' level

Parameters
msg:Object

the message to log

Annotations
@Override
logDebugback to summary
public void logDebug(Object msg, Throwable thrown)

Implements com.mysql.cj.log.Log.logDebug.

Doc from com.mysql.cj.log.Log.logDebug.

Logs the given message and Throwable at the 'debug' level.

Parameters
msg:Object

the message to log

thrown:Throwable

the throwable to log (may be null)

Annotations
@Override
logErrorback to summary
public void logError(Object msg)

Implements com.mysql.cj.log.Log.logError.

Doc from com.mysql.cj.log.Log.logError.

Logs the given message instance using the 'error' level

Parameters
msg:Object

the message to log

Annotations
@Override
logErrorback to summary
public void logError(Object msg, Throwable thrown)

Implements com.mysql.cj.log.Log.logError.

Doc from com.mysql.cj.log.Log.logError.

Logs the given message and Throwable at the 'error' level.

Parameters
msg:Object

the message to log

thrown:Throwable

the throwable to log (may be null)

Annotations
@Override
logFatalback to summary
public void logFatal(Object msg)

Implements com.mysql.cj.log.Log.logFatal.

Doc from com.mysql.cj.log.Log.logFatal.

Logs the given message instance using the 'fatal' level

Parameters
msg:Object

the message to log

Annotations
@Override
logFatalback to summary
public void logFatal(Object msg, Throwable thrown)

Implements com.mysql.cj.log.Log.logFatal.

Doc from com.mysql.cj.log.Log.logFatal.

Logs the given message and Throwable at the 'fatal' level.

Parameters
msg:Object

the message to log

thrown:Throwable

the throwable to log (may be null)

Annotations
@Override
logInfoback to summary
public void logInfo(Object msg)

Implements com.mysql.cj.log.Log.logInfo.

Doc from com.mysql.cj.log.Log.logInfo.

Logs the given message instance using the 'info' level

Parameters
msg:Object

the message to log

Annotations
@Override
logInfoback to summary
public void logInfo(Object msg, Throwable thrown)

Implements com.mysql.cj.log.Log.logInfo.

Doc from com.mysql.cj.log.Log.logInfo.

Logs the given message and Throwable at the 'info' level.

Parameters
msg:Object

the message to log

thrown:Throwable

the throwable to log (may be null)

Annotations
@Override
logTraceback to summary
public void logTrace(Object msg)

Implements com.mysql.cj.log.Log.logTrace.

Doc from com.mysql.cj.log.Log.logTrace.

Logs the given message instance using the 'trace' level

Parameters
msg:Object

the message to log

Annotations
@Override
logTraceback to summary
public void logTrace(Object msg, Throwable thrown)

Implements com.mysql.cj.log.Log.logTrace.

Doc from com.mysql.cj.log.Log.logTrace.

Logs the given message and Throwable at the 'trace' level.

Parameters
msg:Object

the message to log

thrown:Throwable

the throwable to log (may be null)

Annotations
@Override
logWarnback to summary
public void logWarn(Object msg)

Implements com.mysql.cj.log.Log.logWarn.

Doc from com.mysql.cj.log.Log.logWarn.

Logs the given message instance using the 'warn' level

Parameters
msg:Object

the message to log

Annotations
@Override
logWarnback to summary
public void logWarn(Object msg, Throwable thrown)

Implements com.mysql.cj.log.Log.logWarn.

Doc from com.mysql.cj.log.Log.logWarn.

Logs the given message and Throwable at the 'warn' level.

Parameters
msg:Object

the message to log

thrown:Throwable

the throwable to log (may be null)

Annotations
@Override