org.javasimon.jdbc.logging
Class LoggingCallback.CsvFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.javasimon.jdbc.logging.SimonFormatter
          extended by org.javasimon.jdbc.logging.LoggingCallback.CsvFormatter
Enclosing class:
LoggingCallback

private static final class LoggingCallback.CsvFormatter
extends SimonFormatter

CsvFormatter formats log messages to comma separated value form.


Field Summary
private static String ID
           
private  String lineSeparator
           
 
Constructor Summary
private LoggingCallback.CsvFormatter()
           
 
Method Summary
protected  String formatRecord(LogRecord record, CallbackLogParams params)
          Custom format method.
 
Methods inherited from class org.javasimon.jdbc.logging.SimonFormatter
format, isStart, note
 
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

ID

private static final String ID
See Also:
Constant Field Values

lineSeparator

private final String lineSeparator
Constructor Detail

LoggingCallback.CsvFormatter

private LoggingCallback.CsvFormatter()
Method Detail

formatRecord

protected String formatRecord(LogRecord record,
                              CallbackLogParams params)
Description copied from class: SimonFormatter
Custom format method.

Specified by:
formatRecord in class SimonFormatter
Parameters:
record - standard logging log record
params - callback logging parameters
Returns:
log message formated to string


Copyright © 2011. All Rights Reserved.