Top Description Fields Constructors Methods
com.mysql.cj.log

public Class Jdk14Logger

extends Object
implements Log
Class Inheritance
All Implemented Interfaces
com.mysql.cj.log.Log
Imports
java.util.logging.Level, .Logger

Logging functionality for JDK1.4

Field Summary

Modifier and TypeField and Description
private static final Level
private static final Level
private static final Level
private static final Level
protected Logger
jdkLogger

The underlying logger from JDK-1.4

private static final Level
private static final Level

Constructor Summary

AccessConstructor and Description
public
Jdk14Logger(String
logger name as per Logger#getLogger(String)
name
)

Creates a new Jdk14Logger object.

Method Summary

Modifier and TypeMethod and Description
private static final int
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
message
)

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

Logs the given message instance using the 'debug' level

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

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
message
)

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

Logs the given message instance using the 'error' level

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

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
message
)

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

Logs the given message instance using the 'fatal' level

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

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
message
)

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

Logs the given message instance using the 'info' level

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

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

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

private void
logInternal(Level level, Object msg, Throwable exception)

public void
logTrace(Object
the message to log
message
)

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

Logs the given message instance using the 'trace' level

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

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
message
)

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

Logs the given message instance using the 'warn' level

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

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

DEBUGback to summary
private static final Level DEBUG
ERRORback to summary
private static final Level ERROR
FATALback to summary
private static final Level FATAL
INFOback to summary
private static final Level INFO
jdkLoggerback to summary
protected Logger jdkLogger

The underlying logger from JDK-1.4

TRACEback to summary
private static final Level TRACE
WARNback to summary
private static final Level WARN

Constructor Detail

Jdk14Loggerback to summary
public Jdk14Logger(String name)

Creates a new Jdk14Logger object.

Parameters
name:String

logger name as per Logger#getLogger(String)

Method Detail

findCallerStackDepthback to summary
private static final int findCallerStackDepth(StackTraceElement[] stackTrace)
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 message)

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

Logs the given message instance using the 'debug' level

Parameters
message:Object

the message to log

Annotations
@Override
logDebugback to summary
public void logDebug(Object message, Throwable exception)

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

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

Parameters
message:Object

the message to log

exception:Throwable

the throwable to log (may be null)

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

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

Logs the given message instance using the 'error' level

Parameters
message:Object

the message to log

Annotations
@Override
logErrorback to summary
public void logError(Object message, Throwable exception)

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

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

Parameters
message:Object

the message to log

exception:Throwable

the throwable to log (may be null)

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

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

Logs the given message instance using the 'fatal' level

Parameters
message:Object

the message to log

Annotations
@Override
logFatalback to summary
public void logFatal(Object message, Throwable exception)

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

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

Parameters
message:Object

the message to log

exception:Throwable

the throwable to log (may be null)

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

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

Logs the given message instance using the 'info' level

Parameters
message:Object

the message to log

Annotations
@Override
logInfoback to summary
public void logInfo(Object message, Throwable exception)

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

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

Parameters
message:Object

the message to log

exception:Throwable

the throwable to log (may be null)

Annotations
@Override
logInternalback to summary
private void logInternal(Level level, Object msg, Throwable exception)
logTraceback to summary
public void logTrace(Object message)

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

Logs the given message instance using the 'trace' level

Parameters
message:Object

the message to log

Annotations
@Override
logTraceback to summary
public void logTrace(Object message, Throwable exception)

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

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

Parameters
message:Object

the message to log

exception:Throwable

the throwable to log (may be null)

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

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

Logs the given message instance using the 'warn' level

Parameters
message:Object

the message to log

Annotations
@Override
logWarnback to summary
public void logWarn(Object message, Throwable exception)

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

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

Parameters
message:Object

the message to log

exception:Throwable

the throwable to log (may be null)

Annotations
@Override