public abstract class FormattedLogger extends Object implements P6Logger
P6Logger
implementation providing support for pluggable MessageFormattingStrategy
.Modifier and Type | Field and Description |
---|---|
protected MessageFormattingStrategy |
strategy |
Modifier | Constructor and Description |
---|---|
protected |
FormattedLogger() |
Modifier and Type | Method and Description |
---|---|
void |
logSQL(int connectionId,
String now,
long elapsed,
Category category,
String prepared,
String sql)
Logs the
SQL . |
void |
setStrategy(MessageFormattingStrategy strategy)
Sets the strategy implementation to use for formatting log message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCategoryEnabled, logException, logText
protected MessageFormattingStrategy strategy
public void logSQL(int connectionId, String now, long elapsed, Category category, String prepared, String sql)
P6Logger
SQL
.public void setStrategy(MessageFormattingStrategy strategy)
SingleLineFormat
Copyright © 2002-2015 P6Spy. All Rights Reserved.