log4j.rootCategory=WARN, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.Target=System.err
log4j.appender.A1.layout.ConversionPattern=%r %-15.15c{2} %-1.1p %m %n
Example: 1130122891846 Http11BaseProtocol I Initializing Coyote HTTP/1.1 on http-8800
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | format(LogRecord
the log record to be formatted. record)Implements abstract java. Format the given log record and return the formatted string. |
| LOG_LEVEL_DEBUG | back to summary |
|---|---|
| public static final int LOG_LEVEL_DEBUG | |
| LOG_LEVEL_ERROR | back to summary |
|---|---|
| public static final int LOG_LEVEL_ERROR | |
| LOG_LEVEL_FATAL | back to summary |
|---|---|
| public static final int LOG_LEVEL_FATAL | |
| LOG_LEVEL_INFO | back to summary |
|---|---|
| public static final int LOG_LEVEL_INFO | |
| LOG_LEVEL_TRACE | back to summary |
|---|---|
| public static final int LOG_LEVEL_TRACE | |
| LOG_LEVEL_WARN | back to summary |
|---|---|
| public static final int LOG_LEVEL_WARN | |
| JdkLoggerFormatter | back to summary |
|---|---|
| public JdkLoggerFormatter() | |
| format | back to summary |
|---|---|
| public String format(LogRecord record) Implements abstract java. Doc from java. Format the given log record and return the formatted string.
The resulting formatted String will normally include a
localized and formatted version of the LogRecord's message field.
It is recommended to use the | |