public class LogFilter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
log(org.slf4j.Logger logger,
LogLevel logLevel,
String log) |
static void |
log(org.slf4j.Logger logger,
LogLevel logLevel,
String log,
Object... params) |
static void |
log(org.slf4j.Logger logger,
LogLevel logLevel,
String log,
Object param) |
static void |
log(org.slf4j.Logger logger,
LogLevel logLevel,
String log,
Object param1,
Object param2) |
static void |
log(org.slf4j.Logger logger,
LogLevel logLevel,
Supplier<String> messageSupplier) |
static void |
logQuery(org.slf4j.Logger logger,
String query,
Object[] params,
long queryStartTime)
Logs a query information to the log system
|
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
|
static void |
setLogExpression(String regexp) |
public static void setLogExpression(String regexp)
public static void logQuery(org.slf4j.Logger logger, String query, Object[] params, long queryStartTime)
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.public static void logQuery(org.slf4j.Logger logger, String query, Object[] params, long queryStartTime, boolean cacheHit)
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 notpublic static void log(org.slf4j.Logger logger, LogLevel logLevel, Supplier<String> messageSupplier)
public static void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param1, Object param2)
Copyright © 2020 JavaLite. All rights reserved.