public interface P6Logger
Modifier and Type | Method and Description |
---|---|
boolean |
isCategoryEnabled(Category category) |
void |
logException(Exception e)
Logs the stacktrace of the exception.
|
void |
logSQL(int connectionId,
String now,
long elapsed,
Category category,
String prepared,
String sql)
Logs the
SQL . |
void |
logText(String text)
Logs the text.
|
void logSQL(int connectionId, String now, long elapsed, Category category, String prepared, String sql)
SQL
.connectionId
- connection identifier.now
- current time.elapsed
- category
- the category to be used for logging.prepared
- the prepared statement to be logged.sql
- the SQL
to be logged.void logException(Exception e)
e
- exception holding the stacktrace to be logged.void logText(String text)
text
- to be loggedboolean isCategoryEnabled(Category category)
category
- the category to be evaluated.true
if category is enabled. Otherwise returns
false
Copyright © 2002-2015 P6Spy. All Rights Reserved.