public interface P6Logger
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCategoryEnabled(Category category) |
void |
logException(java.lang.Exception e)
Logs the stacktrace of the exception.
|
void |
logSQL(int connectionId,
java.lang.String now,
long elapsed,
Category category,
java.lang.String prepared,
java.lang.String sql,
java.lang.String url)
Logs the
SQL. |
void |
logText(java.lang.String text)
Logs the text.
|
void logSQL(int connectionId,
java.lang.String now,
long elapsed,
Category category,
java.lang.String prepared,
java.lang.String sql,
java.lang.String url)
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.url - the database url where the sql statement executedvoid logException(java.lang.Exception e)
e - exception holding the stacktrace to be logged.void logText(java.lang.String text)
text - to be loggedboolean isCategoryEnabled(Category category)
category - the category to be evaluated.true if category is enabled. Otherwise returns
false