Class LiquibaseLog4j2Logger

java.lang.Object
liquibase.AbstractExtensibleObject
liquibase.logging.core.AbstractLogger
org.frankframework.jdbc.migration.LiquibaseLog4j2Logger
All Implemented Interfaces:
AutoCloseable, Cloneable, liquibase.ExtensibleObject, liquibase.logging.Logger

public class LiquibaseLog4j2Logger extends liquibase.logging.core.AbstractLogger
It is important that we're wrapping the Log4j2 Logger and are directly calling logIfEnabled. By calling a log method (logger.warn(String)) directly, it will affect the stack and thus the package.classname log-prefix.
Author:
Niels Meijer
  • Constructor Details

    • LiquibaseLog4j2Logger

      public LiquibaseLog4j2Logger(Class<?> clazz)
  • Method Details

    • log

      public void log(Level level, String message, Throwable e)
    • severe

      public void severe(String message)
      Specified by:
      severe in interface liquibase.logging.Logger
      Overrides:
      severe in class liquibase.logging.core.AbstractLogger
    • severe

      public void severe(String message, Throwable e)
      Specified by:
      severe in interface liquibase.logging.Logger
      Overrides:
      severe in class liquibase.logging.core.AbstractLogger
    • warning

      public void warning(String message)
      Specified by:
      warning in interface liquibase.logging.Logger
      Overrides:
      warning in class liquibase.logging.core.AbstractLogger
    • warning

      public void warning(String message, Throwable e)
      Specified by:
      warning in interface liquibase.logging.Logger
      Overrides:
      warning in class liquibase.logging.core.AbstractLogger
    • info

      public void info(String message)
      Specified by:
      info in interface liquibase.logging.Logger
      Overrides:
      info in class liquibase.logging.core.AbstractLogger
    • info

      public void info(String message, Throwable e)
      Specified by:
      info in interface liquibase.logging.Logger
      Overrides:
      info in class liquibase.logging.core.AbstractLogger
    • config

      public void config(String message)
      Specified by:
      config in interface liquibase.logging.Logger
      Overrides:
      config in class liquibase.logging.core.AbstractLogger
    • config

      public void config(String message, Throwable e)
      Specified by:
      config in interface liquibase.logging.Logger
      Overrides:
      config in class liquibase.logging.core.AbstractLogger
    • debug

      public void debug(String message)
      Specified by:
      debug in interface liquibase.logging.Logger
      Overrides:
      debug in class liquibase.logging.core.AbstractLogger
    • debug

      public void debug(String message, Throwable e)
      Specified by:
      debug in interface liquibase.logging.Logger
      Overrides:
      debug in class liquibase.logging.core.AbstractLogger
    • fine

      public void fine(String message)
      Specified by:
      fine in interface liquibase.logging.Logger
      Overrides:
      fine in class liquibase.logging.core.AbstractLogger
    • fine

      public void fine(String message, Throwable e)
      Specified by:
      fine in interface liquibase.logging.Logger
      Overrides:
      fine in class liquibase.logging.core.AbstractLogger