public class LoggerJDK13 extends AbstractLogger
Constructor and Description |
---|
LoggerJDK13(String loggerName,
String bundleName,
ClassLoader loader)
Creates a new LoggerJDK13.
|
Modifier and Type | Method and Description |
---|---|
void |
log(int level,
String msg,
Throwable thrown)
Log a message.
|
protected void |
logInternal(int level,
String message)
This method does the actual logging.
|
config, entering, entering, entering, exiting, exiting, fine, fine, fine, fine, fine, finer, finer, finer, finer, finer, finest, finest, finest, finest, finest, getBundle, getLevel, getMessage, getMessages, getMessageWithPrefix, getName, info, isLoggable, isLoggable, log, log, log, log, log, severe, throwing, toString, toString, warning
public LoggerJDK13(String loggerName, String bundleName, ClassLoader loader)
loggerName
- the full domain name of this loggerbundleName
- the bundle name for message translationloader
- the loader used for looking up the bundle file
and possibly the logging.properties or alternative filepublic void log(int level, String msg, Throwable thrown)
If the logger is currently enabled for the message level then the given message, and the exception dump, is forwarded to all the registered output Handler objects.
log
in interface Logger
log
in class AbstractLogger
level
- The level for this messagemsg
- The string message (or a key in the message catalog)thrown
- The exception to logprotected void logInternal(int level, String message)
logInternal
in class AbstractLogger
level
- the level to printmessage
- the message to printCopyright © 2020. All rights reserved.