Top Description Fields Constructors Methods
org.apache.juli.logging

pack-priv Class DirectJDKLog

extends Object
implements Log
Class Inheritance
All Implemented Interfaces
org.apache.juli.logging.Log
Imports
java.util.logging.ConsoleHandler, .Formatter, .Handler, .Level, .Logger

Hard-coded java.util.logging commons-logging implementation.

Field Summary

Modifier and TypeField and Description
private static final String
public final Logger
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
debug(Object
log this message
message
)

Implements org.apache.juli.logging.Log.debug.

Log a message with debug log level.

public final void
debug(Object
log this message
message
,
Throwable
log this cause
t
)

Implements org.apache.juli.logging.Log.debug.

Log an error with debug log level.

public final void
error(Object
log this message
message
)

Implements org.apache.juli.logging.Log.error.

Log a message with error log level.

public final void
error(Object
log this message
message
,
Throwable
log this cause
t
)

Implements org.apache.juli.logging.Log.error.

Log an error with error log level.

public final void
fatal(Object
log this message
message
)

Implements org.apache.juli.logging.Log.fatal.

Log a message with fatal log level.

public final void
fatal(Object
log this message
message
,
Throwable
log this cause
t
)

Implements org.apache.juli.logging.Log.fatal.

Log an error with fatal log level.

pack-priv static Log
public final void
info(Object
log this message
message
)

Implements org.apache.juli.logging.Log.info.

Log a message with info log level.

public final void
info(Object
log this message
message
,
Throwable
log this cause
t
)

Implements org.apache.juli.logging.Log.info.

Log an error with info log level.

public final boolean
isDebugEnabled()

Implements org.apache.juli.logging.Log.isDebugEnabled.

Is debug logging currently enabled?

public final boolean
isErrorEnabled()

Implements org.apache.juli.logging.Log.isErrorEnabled.

Is error logging currently enabled?

public final boolean
isFatalEnabled()

Implements org.apache.juli.logging.Log.isFatalEnabled.

Is fatal logging currently enabled?

public final boolean
isInfoEnabled()

Implements org.apache.juli.logging.Log.isInfoEnabled.

Is info logging currently enabled?

public final boolean
isTraceEnabled()

Implements org.apache.juli.logging.Log.isTraceEnabled.

Is trace logging currently enabled?

public final boolean
isWarnEnabled()

Implements org.apache.juli.logging.Log.isWarnEnabled.

Is warn logging currently enabled?

private void
log(Level level, String msg, Throwable ex)

public final void
trace(Object
log this message
message
)

Implements org.apache.juli.logging.Log.trace.

Log a message with trace log level.

public final void
trace(Object
log this message
message
,
Throwable
log this cause
t
)

Implements org.apache.juli.logging.Log.trace.

Log an error with trace log level.

public final void
warn(Object
log this message
message
)

Implements org.apache.juli.logging.Log.warn.

Log a message with warn log level.

public final void
warn(Object
log this message
message
,
Throwable
log this cause
t
)

Implements org.apache.juli.logging.Log.warn.

Log an error with warn log level.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FORMATTERback to summary
private static final String FORMATTER
loggerback to summary
public final Logger logger
SIMPLE_FMTback to summary
private static final String SIMPLE_FMT

Constructor Detail

DirectJDKLogback to summary
pack-priv DirectJDKLog(String name)

Method Detail

debugback to summary
public final void debug(Object message)

Implements org.apache.juli.logging.Log.debug.

Doc from org.apache.juli.logging.Log.debug.

Log a message with debug log level.

Parameters
message:Object

log this message

Annotations
@Override
debugback to summary
public final void debug(Object message, Throwable t)

Implements org.apache.juli.logging.Log.debug.

Doc from org.apache.juli.logging.Log.debug.

Log an error with debug log level.

Parameters
message:Object

log this message

t:Throwable

log this cause

Annotations
@Override
errorback to summary
public final void error(Object message)

Implements org.apache.juli.logging.Log.error.

Doc from org.apache.juli.logging.Log.error.

Log a message with error log level.

Parameters
message:Object

log this message

Annotations
@Override
errorback to summary
public final void error(Object message, Throwable t)

Implements org.apache.juli.logging.Log.error.

Doc from org.apache.juli.logging.Log.error.

Log an error with error log level.

Parameters
message:Object

log this message

t:Throwable

log this cause

Annotations
@Override
fatalback to summary
public final void fatal(Object message)

Implements org.apache.juli.logging.Log.fatal.

Doc from org.apache.juli.logging.Log.fatal.

Log a message with fatal log level.

Parameters
message:Object

log this message

Annotations
@Override
fatalback to summary
public final void fatal(Object message, Throwable t)

Implements org.apache.juli.logging.Log.fatal.

Doc from org.apache.juli.logging.Log.fatal.

Log an error with fatal log level.

Parameters
message:Object

log this message

t:Throwable

log this cause

Annotations
@Override
getInstanceback to summary
pack-priv static Log getInstance(String name)
infoback to summary
public final void info(Object message)

Implements org.apache.juli.logging.Log.info.

Doc from org.apache.juli.logging.Log.info.

Log a message with info log level.

Parameters
message:Object

log this message

Annotations
@Override
infoback to summary
public final void info(Object message, Throwable t)

Implements org.apache.juli.logging.Log.info.

Doc from org.apache.juli.logging.Log.info.

Log an error with info log level.

Parameters
message:Object

log this message

t:Throwable

log this cause

Annotations
@Override
isDebugEnabledback to summary
public final boolean isDebugEnabled()

Implements org.apache.juli.logging.Log.isDebugEnabled.

Doc from org.apache.juli.logging.Log.isDebugEnabled.

Is debug logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than debug.

Returns:boolean

true if debug level logging is enabled, otherwise false

Annotations
@Override
isErrorEnabledback to summary
public final boolean isErrorEnabled()

Implements org.apache.juli.logging.Log.isErrorEnabled.

Doc from org.apache.juli.logging.Log.isErrorEnabled.

Is error logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than error.

Returns:boolean

true if error level logging is enabled, otherwise false

Annotations
@Override
isFatalEnabledback to summary
public final boolean isFatalEnabled()

Implements org.apache.juli.logging.Log.isFatalEnabled.

Doc from org.apache.juli.logging.Log.isFatalEnabled.

Is fatal logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than fatal.

Returns:boolean

true if fatal level logging is enabled, otherwise false

Annotations
@Override
isInfoEnabledback to summary
public final boolean isInfoEnabled()

Implements org.apache.juli.logging.Log.isInfoEnabled.

Doc from org.apache.juli.logging.Log.isInfoEnabled.

Is info logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than info.

Returns:boolean

true if info level logging is enabled, otherwise false

Annotations
@Override
isTraceEnabledback to summary
public final boolean isTraceEnabled()

Implements org.apache.juli.logging.Log.isTraceEnabled.

Doc from org.apache.juli.logging.Log.isTraceEnabled.

Is trace logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than trace.

Returns:boolean

true if trace level logging is enabled, otherwise false

Annotations
@Override
isWarnEnabledback to summary
public final boolean isWarnEnabled()

Implements org.apache.juli.logging.Log.isWarnEnabled.

Doc from org.apache.juli.logging.Log.isWarnEnabled.

Is warn logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than warn.

Returns:boolean

true if warn level logging is enabled, otherwise false

Annotations
@Override
logback to summary
private void log(Level level, String msg, Throwable ex)
traceback to summary
public final void trace(Object message)

Implements org.apache.juli.logging.Log.trace.

Doc from org.apache.juli.logging.Log.trace.

Log a message with trace log level.

Parameters
message:Object

log this message

Annotations
@Override
traceback to summary
public final void trace(Object message, Throwable t)

Implements org.apache.juli.logging.Log.trace.

Doc from org.apache.juli.logging.Log.trace.

Log an error with trace log level.

Parameters
message:Object

log this message

t:Throwable

log this cause

Annotations
@Override
warnback to summary
public final void warn(Object message)

Implements org.apache.juli.logging.Log.warn.

Doc from org.apache.juli.logging.Log.warn.

Log a message with warn log level.

Parameters
message:Object

log this message

Annotations
@Override
warnback to summary
public final void warn(Object message, Throwable t)

Implements org.apache.juli.logging.Log.warn.

Doc from org.apache.juli.logging.Log.warn.

Log an error with warn log level.

Parameters
message:Object

log this message

t:Throwable

log this cause

Annotations
@Override