public class CustomFormatter extends Formatter
Formatter that may be customised in a logging.properties
file. The syntax of the property
com.github.fommil.logging.CustomFormatter.format
specifies the output. A newline will be appended to the string and the
following special characters will be expanded (case sensitive):-
%m - message%L - log level%n - name of the logger%t - a timestamp (in ISO-8601 "yyyy-MM-dd HH:mm:ss Z" format)%M - source method name (if available, otherwise "?")%c - source class name (if available, otherwise "?")%C - source simple class name (if available, otherwise "?")%T - thread ID%e - exception message%E - exception class%S - pruned stack trace (best at the end)
Stack trace elements beginning with entries from
com.github.fommil.logging.CustomFormatter.stackExclude
will not be printed.
| Constructor and Description |
|---|
CustomFormatter() |
Copyright © 2013. All Rights Reserved.