Should dates in log messages be reported in a different time zone rather than
local time? If set, the time zone name must be one known by the java TimeZone
class.
Truncate log messages after N characters. 0 = don't truncate (the default).
Truncate stack traces in exception logging (line count).
Use full package names like "com.example.thingy" instead of just the toplevel name like "thingy"?
Format for the log-line prefix, if any.
There are two positional format strings (printf-style): the name of the level being logged
(for example, "ERROR") and the name of the package that's logging (for example, "jobs").
A string in <
angle brackets >
will be used to format the log entry's timestamp, using
java's SimpleDateFormat
.
For example, a format string of:
"%.3s [<yyyyMMdd-HH:mm:ss.SSS>] %s: "
will generate a log line prefix of:
"ERR [20080315-18:39:05.033] jobs: "
Calendar to use for time zone display in date-time formatting.
Return the date formatter to use for log messages.
Return the string representation of a given log level's name
Returns the formatted name of the node given a LogRecord
Return the string to prefix each log message with, given a log level, formatted date string, and package name.
Return formatted text from a java LogRecord.
Return the line terminator (if any) to use at the end of each log message.
Format for the log-line prefix, if any.
Format for the log-line prefix, if any.
There are two positional format strings (printf-style): the name of the level being logged
(for example, "ERROR") and the name of the package that's logging (for example, "jobs").
A string in <
angle brackets >
will be used to format the log entry's timestamp, using
java's SimpleDateFormat
.
For example, a format string of:
"%.3s [<yyyyMMdd-HH:mm:ss.SSS>] %s: "
will generate a log line prefix of:
"ERR [20080315-18:39:05.033] jobs: "
Should dates in log messages be reported in a different time zone rather than
local time? If set, the time zone name must be one known by the java TimeZone
class.
Truncate log messages after N characters.
Truncate log messages after N characters. 0 = don't truncate (the default).
Truncate stack traces in exception logging (line count).
Truncates the text from a java LogRecord, if necessary
Use full package names like "com.example.thingy" instead of just the toplevel name like "thingy"?
A standard log formatter for scala. This extends the java built-in log formatter.
Truncation, exception formatting, multi-line logging, and time zones are handled in this class. Subclasses are called for formatting the line prefix, formatting the date, and determining the line terminator.