Class AbstractLogger

java.lang.Object
liquibase.AbstractExtensibleObject
liquibase.logging.core.AbstractLogger
All Implemented Interfaces:
AutoCloseable, Cloneable, ExtensibleObject, Logger
Direct Known Subclasses:
AntTaskLogger, BufferedLogger, CompositeLogger, JavaLogger, NoOpLogger

public abstract class AbstractLogger extends AbstractExtensibleObject implements Logger
Convenience base implementation of a Logger. Default implementation calls down to the Logger.log(Level, String, Throwable) method for all the convenience methods.
  • Constructor Details

    • AbstractLogger

      @Deprecated protected AbstractLogger(LogMessageFilter ignored)
      Deprecated.
      use {@link AbstractLogger(). Passed filter is not used.
    • AbstractLogger

      protected AbstractLogger()
  • Method Details

    • severe

      public void severe(String message)
      Description copied from interface: Logger
      Log that a severe error that occurred.
      Specified by:
      severe in interface Logger
    • severe

      public void severe(String message, Throwable e)
      Description copied from interface: Logger
      Log an error together with data from an error/exception.
      Specified by:
      severe in interface Logger
    • warning

      public void warning(String message)
      Description copied from interface: Logger
      Log a event the user should be warned about.
      Specified by:
      warning in interface Logger
    • warning

      public void warning(String message, Throwable e)
      Description copied from interface: Logger
      Log a event the user should be warned about together with data from an error/exception.
      Specified by:
      warning in interface Logger
    • info

      public void info(String message)
      Description copied from interface: Logger
      Logs a general event that might be useful for the user.
      Specified by:
      info in interface Logger
    • info

      public void info(String message, Throwable e)
      Description copied from interface: Logger
      Logs a general event that might be useful for the user together with data from an error/exception.
      Specified by:
      info in interface Logger
    • config

      public void config(String message)
      Description copied from interface: Logger
      Logs configuration information.
      Specified by:
      config in interface Logger
    • config

      public void config(String message, Throwable e)
      Description copied from interface: Logger
      Logs configuration information together with data from an error/exception.
      Specified by:
      config in interface Logger
    • fine

      public void fine(String message)
      Description copied from interface: Logger
      Logs a debugging event to aid in troubleshooting.
      Specified by:
      fine in interface Logger
    • fine

      public void fine(String message, Throwable e)
      Description copied from interface: Logger
      Logs a debugging event to aid in troubleshooting together with data from an error/exception.
      Specified by:
      fine in interface Logger
    • debug

      public void debug(String message)
      Specified by:
      debug in interface Logger
    • debug

      public void debug(String message, Throwable e)
      Specified by:
      debug in interface Logger
    • filterMessage

      @Deprecated protected String filterMessage(String message)
      Deprecated.
      now just returns the message