public class Slf4JLogger extends FormattedLogger
strategy| Constructor and Description |
|---|
Slf4JLogger() |
| 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.
|
setStrategypublic void logException(java.lang.Exception e)
P6Loggere - exception holding the stacktrace to be logged.public void logText(java.lang.String text)
P6Loggertext - to be loggedpublic void logSQL(int connectionId,
java.lang.String now,
long elapsed,
Category category,
java.lang.String prepared,
java.lang.String sql,
java.lang.String url)
P6LoggerSQL.logSQL in interface P6LoggerlogSQL in class FormattedLoggerconnectionId - connection identifier.now - current time.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 executedpublic boolean isCategoryEnabled(Category category)
category - the category to be evaluated.true if category is enabled. Otherwise returns
false