Package kieker.common.logging
Class SimpleConsoleLoggingFormatter
java.lang.Object
java.util.logging.Formatter
kieker.common.logging.SimpleConsoleLoggingFormatter
public class SimpleConsoleLoggingFormatter
extends java.util.logging.Formatter
A formatter for the logging to the console which is used by the Kieker tools.
It simplifies the log messages and prints only the important information.
- Since:
- 1.10
- Author:
- Nils Christian Ehmke
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
LINE_SEPERATOR
-
Constructor Summary
Constructors Constructor Description SimpleConsoleLoggingFormatter()
Empty constructor. -
Method Summary
Modifier and Type Method Description protected void
fillStringBuilderWithMessage(java.lang.StringBuilder sb, java.util.logging.LogRecord record)
Populates the string builder with logging information.java.lang.String
format(java.util.logging.LogRecord record)
-
Field Details
-
LINE_SEPERATOR
protected static final java.lang.String LINE_SEPERATOR
-
-
Constructor Details
-
SimpleConsoleLoggingFormatter
public SimpleConsoleLoggingFormatter()Empty constructor.
-
-
Method Details
-
format
public java.lang.String format(java.util.logging.LogRecord record)- Specified by:
format
in classjava.util.logging.Formatter
-
fillStringBuilderWithMessage
protected void fillStringBuilderWithMessage(java.lang.StringBuilder sb, java.util.logging.LogRecord record)Populates the string builder with logging information.- Parameters:
sb
- the string builderrecord
- one log record to be used for population of the string builder
-