Package org.javalite.activejdbc.logging
Class LogFilter
java.lang.Object
org.javalite.activejdbc.logging.LogFilter
- Author:
- Igor Polevoy
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
static void
static void
static void
Logs a query information to the log systemstatic void
logQuery(org.slf4j.Logger logger, String query, Object[] params, long queryStartTime, boolean cacheHit)
Logs a query information to the log system without timestatic void
setLogExpression(String regexp)
-
Method Details
-
setLogExpression
-
logQuery
public static void logQuery(org.slf4j.Logger logger, String query, Object[] params, long queryStartTime)Logs a query information to the log system- Parameters:
logger
- logger to usequery
- query textparams
- parameters use in a queryqueryStartTime
- time of query start. This method will calculate how much time it took for the query to execute.
-
logQuery
public static void logQuery(org.slf4j.Logger logger, String query, Object[] params, long queryStartTime, boolean cacheHit)Logs a query information to the log system without time- Parameters:
logger
- logger to usequery
- query textparams
- params used in a queryqueryStartTime
- time of query start. This method will calculate how much time it took for the query to execute.cacheHit
- true if cache was hit, false if not
-
log
-
log
-
log
-
log
-
log
-