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

public Class StandardLogger

extends Object
implements Log
Class Inheritance
All Implemented Interfaces
com.mysql.cj.log.Log
Imports
java.util.Date, com.mysql.cj.util.LogUtils, .Util

Provides logging facilities for those platforms that don't have built-in facilities. Simply logs messages to STDERR.

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private static final int
private boolean
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public
StandardLogger(String
the name of the configuration to use -- ignored
name
)

Creates a new StandardLogger object.

public
StandardLogger(String
the name of the configuration to use -- ignored
name
,
boolean
logLocationInfo
logLocationInfo
)

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
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.

protected String
logInternal(int 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 int DEBUG
ERRORback to summary
private static final int ERROR
FATALback to summary
private static final int FATAL
INFOback to summary
private static final int INFO
logLocationInfoback to summary
private boolean logLocationInfo
TRACEback to summary
private static final int TRACE
WARNback to summary
private static final int WARN

Constructor Detail

StandardLoggerback to summary
public StandardLogger(String name)

Creates a new StandardLogger object.

Parameters
name:String

the name of the configuration to use -- ignored

StandardLoggerback to summary
public StandardLogger(String name, boolean logLocationInfo)
Parameters
name:String

the name of the configuration to use -- ignored

logLocationInfo:boolean

logLocationInfo

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 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
protected String logInternal(int 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