| |
|
| java.lang.Object org.jzonic.jlo.formatter.AbstractFormatter org.jzonic.jlo.formatter.DefinedFormatter
DefinedFormatter | public class DefinedFormatter extends AbstractFormatter (Code) | | This formatter can be configured using the format parameter. Syntax
The class uses the TokenParser to extract the tokens from the format string and
the TokenParser will replace every occurence with the specific output of the
FormatterToken
author: Andreas Mecky author: Terry Dye |
DefinedFormatter | public DefinedFormatter(String configName)(Code) | | |
formatMessage | public String formatMessage(LogRecord lr)(Code) | | Formats the LogRecord according to the defined format
Parameters: lr - the LogRecord the formatted String |
setParameter | public void setParameter(Map params)(Code) | | Sets the format that should be used to render the LogRecord. If not set
the default format is:
${date} ${time} : [${target}] [${class}] ${text}
Parameters: params - a Map containing all parameters defined for the formatter |
Methods inherited from org.jzonic.jlo.formatter.AbstractFormatter | public String getConfigurationName()(Code)(Java Doc)
|
|
|
|