Kieker 1.12

kieker.common.logging
Class SimpleConsoleLoggingFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by 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
protected static java.lang.String LINE_SEPERATOR
           
 
Constructor Summary
SimpleConsoleLoggingFormatter()
          Empty constructor.
 
Method Summary
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)
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEPERATOR

protected static final java.lang.String LINE_SEPERATOR
Constructor Detail

SimpleConsoleLoggingFormatter

public SimpleConsoleLoggingFormatter()
Empty constructor.

Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.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 builder
record - one log record to be used for population of the string builder

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net