|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
org.x4juli.global.components.AbstractFormatter
org.x4juli.formatter.SimpleFormatter
Logging API as a whole was originally done for Apache log4j. Juli is a port of main parts of that to complete the Java Logging APIs. All credits for initial idea, design, implementation, documentation belong to the log4j crew. This file was originally published by Ceki Gülcü . Please use exclusively the appropriate mailing lists for questions, remarks and contribution.
| Field Summary |
| Fields inherited from class org.x4juli.global.components.AbstractFormatter |
ignoresThrowable, manager, repository |
| Constructor Summary | |
SimpleFormatter()
Default Constructor |
|
| Method Summary | |
void |
activateOptions()
Activate the options that were previously set with calls to option setters. |
java.lang.String |
doFormat(ExtendedLogRecord record)
Writes the log statement in a format consisting of the level,
followed by " - " and then the message. |
| Methods inherited from class org.x4juli.global.components.AbstractFormatter |
format, format, formatMessage, getLogger, getLoggerRepository, getMessageProperties, getNonFloodingLogger, getProperty, getProperty, getProperty, ignoresThrowable, resetErrorCount, setIgnoresThrowable, setObjectStore |
| Methods inherited from class java.util.logging.Formatter |
formatMessage, getHead, getTail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.x4juli.global.spi.ExtendedFormatter |
formatMessage, getHead, getTail |
| Constructor Detail |
public SimpleFormatter()
| Method Detail |
public java.lang.String doFormat(ExtendedLogRecord record)
level,
followed by " - " and then the message. For example,
INFO - "A message"
The LogRecord.getName() parameter is ignored.
doFormat in class AbstractFormatterFormatter.format(java.util.logging.LogRecord)public void activateOptions()
OptionHandlerThis allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
OptionHandler.activateOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||