Class LogFilter

java.lang.Object
org.javalite.activejdbc.logging.LogFilter

public class LogFilter extends Object
Author:
Igor Polevoy
  • Method Details

    • setLogExpression

      public static void setLogExpression(String regexp)
    • 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 use
      query - query text
      params - parameters use in a query
      queryStartTime - 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 use
      query - query text
      params - params used in a query
      queryStartTime - 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

      public static void log(org.slf4j.Logger logger, LogLevel logLevel, Supplier<String> messageSupplier)
    • log

      public static void log(org.slf4j.Logger logger, LogLevel logLevel, String log)
    • log

      public static void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param)
    • log

      public static void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object param1, Object param2)
    • log

      public static void log(org.slf4j.Logger logger, LogLevel logLevel, String log, Object... params)