com.sibvisions.util.log.jdk
Class JdkLineFormatter
java.lang.Object
java.util.logging.Formatter
com.sibvisions.util.log.jdk.JdkLineFormatter
public class JdkLineFormatter
- extends java.util.logging.Formatter
The JdkLineFormatter
is a Formatter
implementation. The default
format is:
dd.mm.yyyy HH:mi:ss [ <Level> ] <Text> <caller class> <caller method>
If the text contains more than 100 characters the format is:
dd.mm.yyyy HH:mi:ss [ <Level> ] <caller class> <caller method>
<Text>
Method Summary |
static java.lang.String |
concat(java.lang.Object... pInfo)
Concatenates any objects to a string. |
java.lang.String |
format(java.util.logging.LogRecord pRecord)
|
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 |
JdkLineFormatter
public JdkLineFormatter()
format
public java.lang.String format(java.util.logging.LogRecord pRecord)
-
- Specified by:
format
in class java.util.logging.Formatter
concat
public static java.lang.String concat(java.lang.Object... pInfo)
- Concatenates any objects to a string. It handles Object[] and Throwable
information as special objects.
- Parameters:
pInfo
- any objects
- Returns:
- the log text
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.