PatternLogMessageStringifier
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Implements: | |
| Known subclasses: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.stringifier.PatternLogMessageStringifier |
| File last modified: | Saturday, 02 July 2005, 22:43:52 |
PatternLogMessageStringifier stringifies org.as2lib.env.log.LogMessage instancesbased on configuration and a pattern.
Summary
Constructor
Constructor
PatternLogMessageStringifier
function PatternLogMessageStringifier (
showLevel:Boolean,
showLoggerName:Boolean,
timeFormat:String)
Constructs a new
PatternLogMessageStringifier instance.Level and logger name are shown by default.
If timeFormat is not passed-in or is null the date-time is not
shown in the log message.
Parameters:
showLevel :
determines whether to show levels in the string representation
shoLoggerName:
determines whether to show the logger name in the string
representation
representation
timeFormat :
(optional) the time format pattern used to format the time
stamp
stamp
See also:
Instance methods
execute
function execute (
target) : String
Returns the string representation of the passed-in org.as2lib.env.log.LogMessage instance.
The returned string is composed as follows:
theTime theLogLevel theLoggerName - theMessage
Depending on your custom settings, which information to show and which not, a
few parts may be left out.
Parameters:
target:
the
LogMessage instance to stringifyReturns:
the string representation of the passed-in
targetSpecified by: