Top Description Fields Methods
com.mysql.cj.log

public Interface Log

Known Direct Implementers
com.mysql.cj.log.NullLogger, com.mysql.cj.log.Slf4JLogger, com.mysql.cj.log.StandardLogger, com.mysql.cj.log.Jdk14Logger

Unified interface to logging facilities on different platforms

Field Summary

Modifier and TypeField and Description
public static final String
LOGGER_INSTANCE_NAME

Logger instance name

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if so.
isDebugEnabled
()

Is the 'debug' log level enabled?

public boolean

Returns:

true if so.
isErrorEnabled
()

Is the 'error' log level enabled?

public boolean

Returns:

true if so.
isFatalEnabled
()

Is the 'fatal' log level enabled?

public boolean

Returns:

true if so.
isInfoEnabled
()

Is the 'info' log level enabled?

public boolean

Returns:

true if so.
isTraceEnabled
()

Is the 'trace' log level enabled?

public boolean

Returns:

true if so.
isWarnEnabled
()

Is the 'warn' log level enabled?

public void
logDebug(Object
the message to log
msg
)

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
)

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

public void
logError(Object
the message to log
msg
)

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
)

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

public void
logFatal(Object
the message to log
msg
)

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
)

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

public void
logInfo(Object
the message to log
msg
)

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
)

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

public void
logTrace(Object
the message to log
msg
)

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
)

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

public void
logWarn(Object
the message to log
msg
)

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
)

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

Field Detail

LOGGER_INSTANCE_NAMEback to summary
public static final String LOGGER_INSTANCE_NAME

Logger instance name

Method Detail

isDebugEnabledback to summary
public boolean isDebugEnabled()

Is the 'debug' log level enabled?

Returns:boolean

true if so.

isErrorEnabledback to summary
public boolean isErrorEnabled()

Is the 'error' log level enabled?

Returns:boolean

true if so.

isFatalEnabledback to summary
public boolean isFatalEnabled()

Is the 'fatal' log level enabled?

Returns:boolean

true if so.

isInfoEnabledback to summary
public boolean isInfoEnabled()

Is the 'info' log level enabled?

Returns:boolean

true if so.

isTraceEnabledback to summary
public boolean isTraceEnabled()

Is the 'trace' log level enabled?

Returns:boolean

true if so.

isWarnEnabledback to summary
public boolean isWarnEnabled()

Is the 'warn' log level enabled?

Returns:boolean

true if so.

logDebugback to summary
public void logDebug(Object msg)

Logs the given message instance using the 'debug' level

Parameters
msg:Object

the message to log

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

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)

logErrorback to summary
public void logError(Object msg)

Logs the given message instance using the 'error' level

Parameters
msg:Object

the message to log

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

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)

logFatalback to summary
public void logFatal(Object msg)

Logs the given message instance using the 'fatal' level

Parameters
msg:Object

the message to log

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

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)

logInfoback to summary
public void logInfo(Object msg)

Logs the given message instance using the 'info' level

Parameters
msg:Object

the message to log

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

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)

logTraceback to summary
public void logTrace(Object msg)

Logs the given message instance using the 'trace' level

Parameters
msg:Object

the message to log

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

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)

logWarnback to summary
public void logWarn(Object msg)

Logs the given message instance using the 'warn' level

Parameters
msg:Object

the message to log

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

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)