public class DefaultFormatter
extends java.util.logging.Formatter
Throwables are logged in a separate line.| Constructor and Description |
|---|
DefaultFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.util.logging.LogRecord record)
Format the given LogRecord.
|
static void |
setAppId(java.lang.String appId)
Allows to provide an application id for cases
where multiple applications log to the same output, e.g.
|
public static void setAppId(java.lang.String appId)
appId - The application id to use in log messages, null to
not log an applicatoin idpublic java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatterrecord - the log record to be formatted.