io.sarl.apputils.bootiqueapp.utils
Class JulPatternFormatter
All Known Subclasses:
SreJulPatternFormatter
class JulPatternFormatter
extends java.lang.Object
JUL formatter based on pattern.

The format string may contains one of the following elements:
  • %1: the date,
  • %2: the name of the calling function,
  • %3: the name of the logger,
  • %4: the logging level,
  • %5: the message, and
  • %6: the throwable.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
bootiqueapp
Since:
0.12
Constructor Summary
Constructor and description
new(String)
Constructor.
Action Summary
Modifier and type Action and description
protected java.lang.String filterLogName(String)
Filter the log name in order to computer the one that is displayed into the log.
java.lang.String format(LogRecord)
Constructor Details
new(String)
new(String)
Constructor.
Parameters:
pattern - the pattern that is compatible with format(String, Object...).
Action Details
filterLogName(String)
protected def filterLogName(String) : java.lang.String
Filter the log name in order to computer the one that is displayed into the log.
Parameters:
logName - the log name to filter.
Returns:
the displayable log name.
format(LogRecord)
def format(LogRecord) : java.lang.String