org.clapper.util.logging
Class JavaUtilLoggingTextFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- org.clapper.util.logging.JavaUtilLoggingTextFormatter
-
public class JavaUtilLoggingTextFormatter extends java.util.logging.FormatterImplements a log formatter for the java.util.logging infrastructure that formats each non-exception log record as a simple, single-line text string. (Exception stack traces will cause a message to consume multiple lines.) This formatter currently cannot be configured in any way, though that may change in subsequent releases. The output format is similar to Log4J's PatternLayout class, with a format of "%d %-5p (%c{1}): %m%n".
-
-
Constructor Summary
Constructors Constructor and Description JavaUtilLoggingTextFormatter()Create a new JavaUtilLoggingTextLogFormatter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Stringformat(java.util.logging.LogRecord record)Format the given log record and return the formatted string.
-
-
-
Constructor Detail
-
JavaUtilLoggingTextFormatter
public JavaUtilLoggingTextFormatter()
Create a new JavaUtilLoggingTextLogFormatter.
-
-
Method Detail
-
format
public java.lang.String format(java.util.logging.LogRecord record)
Format the given log record and return the formatted string.
The resulting formatted String will normally include a localized and formated version of the LogRecord's message field.
- Specified by:
formatin classjava.util.logging.Formatter- Parameters:
record- the log record to be formatted- Returns:
- the formatted log record
-
-
DMelt 3.0 © DataMelt by jWork.ORG