Top Description Fields Constructors Methods
org.apache.logging.log4j.jul

public Class ApiLogger

extends Logger
Class Inheritance
Known Direct Subclasses
org.apache.logging.log4j.jul.CoreLogger
Imports
java.security.AccessController, .PrivilegedAction, java.util.logging.Filter, .Level, .LogRecord, .Logger, org.apache.logging.log4j.message.Message, .MessageFactory, org.apache.logging.log4j.spi.ExtendedLogger, org.apache.logging.log4j.status.StatusLogger

Log4j API implementation of the JUL Logger class. Note that this implementation does not use the java.util.logging.Handler class. Instead, logging is delegated to the underlying Log4j org.apache.logging.log4j.Logger which may be implemented in one of many different ways. Consult the documentation for your Log4j Provider for more details.

Note that the methods getParent() and setLevel(java.util.logging.Level) are not supported by this implementation. If you need support for these methods, then you'll need to use log4j-core. The getParent() method will not fail (thanks to JUL API limitations), but it won't necessarily be accurate!

Also note that setParent(java.util.logging.Logger) is explicitly unsupported. Parent loggers are determined using the syntax of the logger name; not through an arbitrary graph of loggers.

Since
2.1

Field Summary

Modifier and TypeField and Description
private static final String
private final WrappedLogger
Inherited from java.util.logging.Logger:
globalGLOBAL_LOGGER_NAME

Constructor Summary

AccessConstructor and Description
pack-priv
ApiLogger(final ExtendedLogger logger)

Method Summary

Modifier and TypeMethod and Description
public void
config(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.config.

Log a CONFIG message.

protected void
doSetLevel(final Level newLevel)

Provides access to Logger#setLevel(java.util.logging.Level).

public void
entering(final String
name of class that issued the logging request
sourceClass
,
final String
name of method that is being entered
sourceMethod
)

Overrides java.util.logging.Logger.entering.

Log a method entry.

public void
entering(final String
name of class that issued the logging request
sourceClass
,
final String
name of method that is being entered
sourceMethod
,
final Object
parameter to the method being entered
param1
)

Overrides java.util.logging.Logger.entering.

Log a method entry, with one parameter.

public void
entering(final String
name of class that issued the logging request
sourceClass
,
final String
name of method that is being entered
sourceMethod
,
final Object[]
array of parameters to the method being entered
params
)

Overrides java.util.logging.Logger.entering.

Log a method entry, with an array of parameters.

public void
exiting(final String
name of class that issued the logging request
sourceClass
,
final String
name of the method
sourceMethod
)

Overrides java.util.logging.Logger.exiting.

Log a method return.

public void
exiting(final String
name of class that issued the logging request
sourceClass
,
final String
name of the method
sourceMethod
,
final Object
Object that is being returned
result
)

Overrides java.util.logging.Logger.exiting.

Log a method return, with result object.

public void
fine(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.fine.

Log a FINE message.

public void
finer(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.finer.

Log a FINER message.

public void
finest(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.finest.

Log a FINEST message.

public String
getName()

Overrides java.util.logging.Logger.getName.

Get the name for this logger.

public void
info(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.info.

Log an INFO message.

pack-priv boolean
isFiltered(final LogRecord logRecord)

public boolean
isLoggable(final Level
a message logging level
level
)

Overrides java.util.logging.Logger.isLoggable.

Check if a message of the given level would actually be logged by this logger.

public void
log(final LogRecord
the LogRecord to be published
record
)

Overrides java.util.logging.Logger.log.

Log a LogRecord.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.log.

Log a message, with no arguments.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
,
final Object
parameter to the message
param1
)

Overrides java.util.logging.Logger.log.

Log a message, with one object parameter.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
,
final Object[]
array of parameters to the message
params
)

Overrides java.util.logging.Logger.log.

Log a message, with an array of object arguments.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with log message.
thrown
)

Overrides java.util.logging.Logger.log.

Log a message, with associated Throwable information.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with no arguments.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
,
final Object
Parameter to the log message.
param1
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with a single object parameter to the log message.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
,
final Object[]
Array of parameters to the message
params
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with an array of object arguments.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with log message.
thrown
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with associated Throwable information.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null
bundleName
,
final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name with no arguments.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null
bundleName
,
final String
The string message (or a key in the message catalog)
msg
,
final Object
Parameter to the log message.
param1
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null.
bundleName
,
final String
The string message (or a key in the message catalog)
msg
,
final Object[]
Array of parameters to the message
params
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null
bundleName
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with log message.
thrown
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.

public void
setLevel(final Level
the new value for the log level (may be null)
newLevel
)

Overrides java.util.logging.Logger.setLevel.

Set the log level specifying which message levels will be logged by this logger.

public void
setParent(final Logger
the new parent logger
parent
)

Overrides java.util.logging.Logger.setParent.

Unsupported operation.

public void
severe(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.severe.

Log a SEVERE message.

public void
throwing(final String
name of class that issued the logging request
sourceClass
,
final String
name of the method.
sourceMethod
,
final Throwable
The Throwable that is being thrown.
thrown
)

Overrides java.util.logging.Logger.throwing.

Log throwing an exception.

public void
warning(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.warning.

Log a WARNING message.

Inherited from java.util.logging.Logger:
addHandlerconfigfinefinerfinestgetAnonymousLoggergetAnonymousLoggergetFiltergetGlobalgetHandlersgetLevelgetLoggergetLoggergetParentgetResourceBundlegetResourceBundleNamegetUseParentHandlersinfologloglogplogplogrblogrblogrblogrbremoveHandlersetFiltersetResourceBundlesetUseParentHandlersseverewarning

Field Detail

FQCNback to summary
private static final String FQCN
loggerback to summary
private final WrappedLogger logger

Constructor Detail

ApiLoggerback to summary
pack-priv ApiLogger(final ExtendedLogger logger)

Method Detail

configback to summary
public void config(final String msg)

Overrides java.util.logging.Logger.config.

Doc from java.util.logging.Logger.config.

Log a CONFIG message.

If the logger is currently enabled for the CONFIG message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override
doSetLevelback to summary
protected void doSetLevel(final Level newLevel) throws SecurityException

Provides access to Logger#setLevel(java.util.logging.Level). This method should only be used by child classes.

See Also
Logger#setLevel(java.util.logging.Level)
enteringback to summary
public void entering(final String sourceClass, final String sourceMethod)

Overrides java.util.logging.Logger.entering.

Doc from java.util.logging.Logger.entering.

Log a method entry.

This is a convenience method that can be used to log entry to a method. A LogRecord with message "ENTRY", log level FINER, and the given sourceMethod and sourceClass is logged.

Parameters
sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that is being entered

Annotations
@Override
enteringback to summary
public void entering(final String sourceClass, final String sourceMethod, final Object param1)

Overrides java.util.logging.Logger.entering.

Doc from java.util.logging.Logger.entering.

Log a method entry, with one parameter.

This is a convenience method that can be used to log entry to a method. A LogRecord with message "ENTRY {0}", log level FINER, and the given sourceMethod, sourceClass, and parameter is logged.

Parameters
sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that is being entered

param1:Object

parameter to the method being entered

Annotations
@Override
enteringback to summary
public void entering(final String sourceClass, final String sourceMethod, final Object[] params)

Overrides java.util.logging.Logger.entering.

Doc from java.util.logging.Logger.entering.

Log a method entry, with an array of parameters.

This is a convenience method that can be used to log entry to a method. A LogRecord with message "ENTRY" (followed by a format {N} indicator for each entry in the parameter array), log level FINER, and the given sourceMethod, sourceClass, and parameters is logged.

Parameters
sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that is being entered

params:Object[]

array of parameters to the method being entered

Annotations
@Override
exitingback to summary
public void exiting(final String sourceClass, final String sourceMethod)

Overrides java.util.logging.Logger.exiting.

Doc from java.util.logging.Logger.exiting.

Log a method return.

This is a convenience method that can be used to log returning from a method. A LogRecord with message "RETURN", log level FINER, and the given sourceMethod and sourceClass is logged.

Parameters
sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of the method

Annotations
@Override
exitingback to summary
public void exiting(final String sourceClass, final String sourceMethod, final Object result)

Overrides java.util.logging.Logger.exiting.

Doc from java.util.logging.Logger.exiting.

Log a method return, with result object.

This is a convenience method that can be used to log returning from a method. A LogRecord with message "RETURN {0}", log level FINER, and the gives sourceMethod, sourceClass, and result object is logged.

Parameters
sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of the method

result:Object

Object that is being returned

Annotations
@Override
fineback to summary
public void fine(final String msg)

Overrides java.util.logging.Logger.fine.

Doc from java.util.logging.Logger.fine.

Log a FINE message.

If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override
finerback to summary
public void finer(final String msg)

Overrides java.util.logging.Logger.finer.

Doc from java.util.logging.Logger.finer.

Log a FINER message.

If the logger is currently enabled for the FINER message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override
finestback to summary
public void finest(final String msg)

Overrides java.util.logging.Logger.finest.

Doc from java.util.logging.Logger.finest.

Log a FINEST message.

If the logger is currently enabled for the FINEST message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override
getNameback to summary
public String getName()

Overrides java.util.logging.Logger.getName.

Doc from java.util.logging.Logger.getName.

Get the name for this logger.

Returns:String

logger name. Will be null for anonymous Loggers.

Annotations
@Override
infoback to summary
public void info(final String msg)

Overrides java.util.logging.Logger.info.

Doc from java.util.logging.Logger.info.

Log an INFO message.

If the logger is currently enabled for the INFO message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override
isFilteredback to summary
pack-priv boolean isFiltered(final LogRecord logRecord)
isLoggableback to summary
public boolean isLoggable(final Level level)

Overrides java.util.logging.Logger.isLoggable.

Doc from java.util.logging.Logger.isLoggable.

Check if a message of the given level would actually be logged by this logger. This check is based on the Loggers effective level, which may be inherited from its parent.

Parameters
level:Level

a message logging level

Returns:boolean

true if the given message level is currently being logged.

Annotations
@Override
logback to summary
public void log(final LogRecord record)

Overrides java.util.logging.Logger.log.

Doc from java.util.logging.Logger.log.

Log a LogRecord.

All the other logging methods in this class call through this method to actually perform any logging. Subclasses can override this single method to capture all log activity.

Parameters
record:LogRecord

the LogRecord to be published

Annotations
@Override
logback to summary
public void log(final Level level, final String msg)

Overrides java.util.logging.Logger.log.

Doc from java.util.logging.Logger.log.

Log a message, with no arguments.

If the logger is currently enabled for the given message level then the given message is forwarded to all the registered output Handler objects.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

msg:String

The string message (or a key in the message catalog)

Annotations
@Override
logback to summary
public void log(final Level level, final String msg, final Object param1)

Overrides java.util.logging.Logger.log.

Doc from java.util.logging.Logger.log.

Log a message, with one object parameter.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

msg:String

The string message (or a key in the message catalog)

param1:Object

parameter to the message

Annotations
@Override
logback to summary
public void log(final Level level, final String msg, final Object[] params)

Overrides java.util.logging.Logger.log.

Doc from java.util.logging.Logger.log.

Log a message, with an array of object arguments.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

msg:String

The string message (or a key in the message catalog)

params:Object[]

array of parameters to the message

Annotations
@Override
logback to summary
public void log(final Level level, final String msg, final Throwable thrown)

Overrides java.util.logging.Logger.log.

Doc from java.util.logging.Logger.log.

Log a message, with associated Throwable information.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers.

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus it is processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

msg:String

The string message (or a key in the message catalog)

thrown:Throwable

Throwable associated with log message.

Annotations
@Override
logpback to summary
public void logp(final Level level, final String sourceClass, final String sourceMethod, final String msg)

Overrides java.util.logging.Logger.logp.

Doc from java.util.logging.Logger.logp.

Log a message, specifying source class and method, with no arguments.

If the logger is currently enabled for the given message level then the given message is forwarded to all the registered output Handler objects.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

msg:String

The string message (or a key in the message catalog)

Annotations
@Override
logpback to summary
public void logp(final Level level, final String sourceClass, final String sourceMethod, final String msg, final Object param1)

Overrides java.util.logging.Logger.logp.

Doc from java.util.logging.Logger.logp.

Log a message, specifying source class and method, with a single object parameter to the log message.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

msg:String

The string message (or a key in the message catalog)

param1:Object

Parameter to the log message.

Annotations
@Override
logpback to summary
public void logp(final Level level, final String sourceClass, final String sourceMethod, final String msg, final Object[] params)

Overrides java.util.logging.Logger.logp.

Doc from java.util.logging.Logger.logp.

Log a message, specifying source class and method, with an array of object arguments.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

msg:String

The string message (or a key in the message catalog)

params:Object[]

Array of parameters to the message

Annotations
@Override
logpback to summary
public void logp(final Level level, final String sourceClass, final String sourceMethod, final String msg, final Throwable thrown)

Overrides java.util.logging.Logger.logp.

Doc from java.util.logging.Logger.logp.

Log a message, specifying source class and method, with associated Throwable information.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers.

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus it is processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

msg:String

The string message (or a key in the message catalog)

thrown:Throwable

Throwable associated with log message.

Annotations
@Override
logrbback to summary
public void logrb(final Level level, final String sourceClass, final String sourceMethod, final String bundleName, final String msg)

Overrides java.util.logging.Logger.logrb.

Doc from java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name with no arguments.

If the logger is currently enabled for the given message level then the given message is forwarded to all the registered output Handler objects.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

bundleName:String

name of resource bundle to localize msg, can be null

msg:String

The string message (or a key in the message catalog)

Annotations
@Override
logrbback to summary
public void logrb(final Level level, final String sourceClass, final String sourceMethod, final String bundleName, final String msg, final Object param1)

Overrides java.util.logging.Logger.logrb.

Doc from java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

bundleName:String

name of resource bundle to localize msg, can be null

msg:String

The string message (or a key in the message catalog)

param1:Object

Parameter to the log message.

Annotations
@Override
logrbback to summary
public void logrb(final Level level, final String sourceClass, final String sourceMethod, final String bundleName, final String msg, final Object[] params)

Overrides java.util.logging.Logger.logrb.

Doc from java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

bundleName:String

name of resource bundle to localize msg, can be null.

msg:String

The string message (or a key in the message catalog)

params:Object[]

Array of parameters to the message

Annotations
@Override
logrbback to summary
public void logrb(final Level level, final String sourceClass, final String sourceMethod, final String bundleName, final String msg, final Throwable thrown)

Overrides java.util.logging.Logger.logrb.

Doc from java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus it is processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

Parameters
level:Level

One of the message level identifiers, e.g., SEVERE

sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of method that issued the logging request

bundleName:String

name of resource bundle to localize msg, can be null

msg:String

The string message (or a key in the message catalog)

thrown:Throwable

Throwable associated with log message.

Annotations
@Override
setLevelback to summary
public void setLevel(final Level newLevel) throws SecurityException

Overrides java.util.logging.Logger.setLevel.

Doc from java.util.logging.Logger.setLevel.

Set the log level specifying which message levels will be logged by this logger. Message levels lower than this value will be discarded. The level value Level.OFF can be used to turn off logging.

If the new level is null, it means that this node should inherit its level from its nearest ancestor with a specific (non-null) level value.

Parameters
newLevel:Level

the new value for the log level (may be null)

Annotations
@Override
Exceptions
SecurityException:
if a security manager exists, this logger is not anonymous, and the caller does not have LoggingPermission("control").
setParentback to summary
public void setParent(final Logger parent)

Overrides java.util.logging.Logger.setParent.

Unsupported operation.

Parameters
parent:Logger

Doc from java.util.logging.Logger.setParent.

the new parent logger

Annotations
@Override
Exceptions
UnsupportedOperationException:
always
severeback to summary
public void severe(final String msg)

Overrides java.util.logging.Logger.severe.

Doc from java.util.logging.Logger.severe.

Log a SEVERE message.

If the logger is currently enabled for the SEVERE message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override
throwingback to summary
public void throwing(final String sourceClass, final String sourceMethod, final Throwable thrown)

Overrides java.util.logging.Logger.throwing.

Doc from java.util.logging.Logger.throwing.

Log throwing an exception.

This is a convenience method to log that a method is terminating by throwing an exception. The logging is done using the FINER level.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers. The LogRecord's message is set to "THROW".

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus it is processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

Parameters
sourceClass:String

name of class that issued the logging request

sourceMethod:String

name of the method.

thrown:Throwable

The Throwable that is being thrown.

Annotations
@Override
warningback to summary
public void warning(final String msg)

Overrides java.util.logging.Logger.warning.

Doc from java.util.logging.Logger.warning.

Log a WARNING message.

If the logger is currently enabled for the WARNING message level then the given message is forwarded to all the registered output Handler objects.

Parameters
msg:String

The string message (or a key in the message catalog)

Annotations
@Override