|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
org.javasimon.jdbc.logging.SimonFormatter
public abstract class SimonFormatter
SimonFormatter is abstract root for custom log formatters for logging feature of Simon JDBC driver.
Main format method isformatRecord(java.util.logging.LogRecord, CallbackLogParams). It consumes standard
logging LogRecord and object CallbackLogParams. CallbackLogParams contains
parameters from callbacks like name of Simon, split, etc.
CallbackLogParams,
LoggingCallback.formatter()| Constructor Summary | |
|---|---|
SimonFormatter()
|
|
| Method Summary | |
|---|---|
String |
format(LogRecord record)
|
protected abstract String |
formatRecord(LogRecord record,
CallbackLogParams params)
Custom format method. |
protected boolean |
isStart(CallbackLogParams p)
Checks if callback was start event. |
protected String |
note(CallbackLogParams p)
Getter for 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 |
| Constructor Detail |
|---|
public SimonFormatter()
| Method Detail |
|---|
public final String format(LogRecord record)
format in class Formatter
protected abstract String formatRecord(LogRecord record,
CallbackLogParams params)
record - standard logging log recordparams - callback logging parameters
protected boolean isStart(CallbackLogParams p)
p - callback logging params
true if event was start; otherwise falseprotected String note(CallbackLogParams p)
p - callback logging params
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||