Module glf.api

Class AbstractLogger

java.lang.Object
org.seppiko.glf.event.AbstractLogger
All Implemented Interfaces:
Logger
Direct Known Subclasses:
LegacyAbstractLogger

public abstract class AbstractLogger extends Object implements Logger
Abstract logger implementation
Author:
Leonard Woo
  • Field Details

    • name

      protected String name
  • Constructor Details

    • AbstractLogger

      public AbstractLogger()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Logger
      Return the name of this Logger instance.
      Specified by:
      getName in interface Logger
      Returns:
      name of this logger instance.
    • trace

      public void trace(String message)
      Description copied from interface: Logger
      Log a message at the TRACE level according to the specified format and arguments.
      Specified by:
      trace in interface Logger
      Parameters:
      message - the message string to be logged.
    • trace

      public void trace(String message, Object param)
      Description copied from interface: Logger
      Log a message at the TRACE level according to the specified format and argument.
      Specified by:
      trace in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
    • trace

      public void trace(String message, Object... params)
      Description copied from interface: Logger
      Log a message at the TRACE level according to the specified format and arguments.
      Specified by:
      trace in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
    • trace

      public void trace(String message, Throwable cause)
      Description copied from interface: Logger
      Log an exception (throwable) at the TRACE level with an accompanying message.
      Specified by:
      trace in interface Logger
      Parameters:
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • trace

      public void trace(String message, Object param, Throwable cause)
      Description copied from interface: Logger
      Log a message at the TRACE level according to the specified format and argument and an exception (throwable) with an accompanying message.
      Specified by:
      trace in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • trace

      public void trace(String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      Log a message at the TRACE level according to the specified format and arguments and an exception (throwable) with an accompanying message.
      Specified by:
      trace in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • trace

      public void trace(Marker marker, String message)
      Description copied from interface: Logger
      Log a message with the specific Marker at the TRACE level.
      Specified by:
      trace in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
    • trace

      public void trace(Marker marker, String message, Object param)
      Description copied from interface: Logger
      This method is similar to Logger.trace(String, Object) method except that the marker data is also taken into consideration.
      Specified by:
      trace in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
    • trace

      public void trace(Marker marker, String message, Object... params)
      Description copied from interface: Logger
      This method is similar to Logger.trace(String, Object...) method except that the marker data is also taken into consideration.
      Specified by:
      trace in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
    • trace

      public void trace(Marker marker, String message, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.trace(String, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      trace in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • trace

      public void trace(Marker marker, String message, Object param, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.trace(String, Object, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      trace in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • trace

      public void trace(Marker marker, String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.trace(String, Object[], Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      trace in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • debug

      public void debug(String message)
      Description copied from interface: Logger
      Log a message at the DEBUG level according to the specified format and arguments.
      Specified by:
      debug in interface Logger
      Parameters:
      message - the message string to be logged.
    • debug

      public void debug(String message, Object param)
      Description copied from interface: Logger
      Log a message at the DEBUG level according to the specified format and argument.
      Specified by:
      debug in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
    • debug

      public void debug(String message, Object... params)
      Description copied from interface: Logger
      Log a message at the DEBUG level according to the specified format and arguments.
      Specified by:
      debug in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
    • debug

      public void debug(String message, Throwable cause)
      Description copied from interface: Logger
      Log an exception (throwable) at the DEBUG level with an accompanying message.
      Specified by:
      debug in interface Logger
      Parameters:
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • debug

      public void debug(String message, Object param, Throwable cause)
      Description copied from interface: Logger
      Log a message at the DEBUG level according to the specified format and argument and an exception (throwable) with an accompanying message.
      Specified by:
      debug in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • debug

      public void debug(String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      Log a message at the DEBUG level according to the specified format and arguments and an exception (throwable) with an accompanying message.
      Specified by:
      debug in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • debug

      public void debug(Marker marker, String message)
      Description copied from interface: Logger
      Log a message with the specific Marker at the DEBUG level.
      Specified by:
      debug in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
    • debug

      public void debug(Marker marker, String message, Object param)
      Description copied from interface: Logger
      This method is similar to Logger.debug(String, Object) method except that the marker data is also taken into consideration.
      Specified by:
      debug in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
    • debug

      public void debug(Marker marker, String message, Object... params)
      Description copied from interface: Logger
      This method is similar to Logger.debug(String, Object...) method except that the marker data is also taken into consideration.
      Specified by:
      debug in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
    • debug

      public void debug(Marker marker, String message, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.debug(String, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      debug in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • debug

      public void debug(Marker marker, String message, Object param, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.debug(String, Object, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      debug in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • debug

      public void debug(Marker marker, String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.debug(String, Object[], Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      debug in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • info

      public void info(String message)
      Description copied from interface: Logger
      Log a message at the INFO level according to the specified format and arguments.
      Specified by:
      info in interface Logger
      Parameters:
      message - the message string to be logged.
    • info

      public void info(String message, Object param)
      Description copied from interface: Logger
      Log a message at the INFO level according to the specified format and argument.
      Specified by:
      info in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
    • info

      public void info(String message, Object... params)
      Description copied from interface: Logger
      Log a message at the INFO level according to the specified format and arguments.
      Specified by:
      info in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
    • info

      public void info(String message, Throwable cause)
      Description copied from interface: Logger
      Log an exception (throwable) at the INFO level with an accompanying message.
      Specified by:
      info in interface Logger
      Parameters:
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • info

      public void info(String message, Object param, Throwable cause)
      Description copied from interface: Logger
      Log a message at the INFO level according to the specified format and argument and an exception (throwable) with an accompanying message.
      Specified by:
      info in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • info

      public void info(String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      Log a message at the INFO level according to the specified format and arguments and an exception (throwable) with an accompanying message.
      Specified by:
      info in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • info

      public void info(Marker marker, String message)
      Description copied from interface: Logger
      Log a message with the specific Marker at the INFO level.
      Specified by:
      info in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
    • info

      public void info(Marker marker, String message, Object param)
      Description copied from interface: Logger
      This method is similar to Logger.info(String, Object) method except that the marker data is also taken into consideration.
      Specified by:
      info in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
    • info

      public void info(Marker marker, String message, Object... params)
      Description copied from interface: Logger
      This method is similar to Logger.info(String, Object...) method except that the marker data is also taken into consideration.
      Specified by:
      info in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
    • info

      public void info(Marker marker, String message, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.info(String, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      info in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • info

      public void info(Marker marker, String message, Object param, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.info(String, Object, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      info in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • info

      public void info(Marker marker, String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.info(String, Object[], Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      info in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • warn

      public void warn(String message)
      Description copied from interface: Logger
      Log a message at the WARN level according to the specified format and arguments.
      Specified by:
      warn in interface Logger
      Parameters:
      message - the message string to be logged.
    • warn

      public void warn(String message, Object param)
      Description copied from interface: Logger
      Log a message at the WARN level according to the specified format and argument.
      Specified by:
      warn in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
    • warn

      public void warn(String message, Object... params)
      Description copied from interface: Logger
      Log a message at the WARN level according to the specified format and arguments.
      Specified by:
      warn in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
    • warn

      public void warn(String message, Throwable cause)
      Description copied from interface: Logger
      Log an exception (throwable) at the WARN level with an accompanying message.
      Specified by:
      warn in interface Logger
      Parameters:
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • warn

      public void warn(String message, Object param, Throwable cause)
      Description copied from interface: Logger
      Log a message at the WARN level according to the specified format and argument and an exception (throwable) with an accompanying message.
      Specified by:
      warn in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • warn

      public void warn(String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      Log a message at the WARN level according to the specified format and arguments and an exception (throwable) with an accompanying message.
      Specified by:
      warn in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • warn

      public void warn(Marker marker, String message)
      Description copied from interface: Logger
      Log a message with the specific Marker at the WARN level.
      Specified by:
      warn in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
    • warn

      public void warn(Marker marker, String message, Object param)
      Description copied from interface: Logger
      This method is similar to Logger.warn(String, Object) method except that the marker data is also taken into consideration.
      Specified by:
      warn in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
    • warn

      public void warn(Marker marker, String message, Object... params)
      Description copied from interface: Logger
      This method is similar to Logger.warn(String, Object...) method except that the marker data is also taken into consideration.
      Specified by:
      warn in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
    • warn

      public void warn(Marker marker, String message, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.warn(String, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      warn in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • warn

      public void warn(Marker marker, String message, Object param, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.warn(String, Object, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      warn in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • warn

      public void warn(Marker marker, String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.warn(String, Object[], Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      warn in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • error

      public void error(String message)
      Description copied from interface: Logger
      Log a message at the ERROR level according to the specified format and arguments.
      Specified by:
      error in interface Logger
      Parameters:
      message - the message string to be logged.
    • error

      public void error(String message, Object param)
      Description copied from interface: Logger
      Log a message at the ERROR level according to the specified format and argument.
      Specified by:
      error in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
    • error

      public void error(String message, Object... params)
      Description copied from interface: Logger
      Log a message at the ERROR level according to the specified format and arguments.
      Specified by:
      error in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
    • error

      public void error(String message, Throwable cause)
      Description copied from interface: Logger
      Log an exception (throwable) at the ERROR level with an accompanying message.
      Specified by:
      error in interface Logger
      Parameters:
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • error

      public void error(String message, Object param, Throwable cause)
      Description copied from interface: Logger
      Log a message at the ERROR level according to the specified format and argument and an exception (throwable) with an accompanying message.
      Specified by:
      error in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • error

      public void error(String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      Log a message at the ERROR level according to the specified format and arguments and an exception (throwable) with an accompanying message.
      Specified by:
      error in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • error

      public void error(Marker marker, String message)
      Description copied from interface: Logger
      Log a message with the specific Marker at the ERROR level.
      Specified by:
      error in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
    • error

      public void error(Marker marker, String message, Object param)
      Description copied from interface: Logger
      This method is similar to Logger.error(String, Object) method except that the marker data is also taken into consideration.
      Specified by:
      error in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
    • error

      public void error(Marker marker, String message, Object... params)
      Description copied from interface: Logger
      This method is similar to Logger.error(String, Object...) method except that the marker data is also taken into consideration.
      Specified by:
      error in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
    • error

      public void error(Marker marker, String message, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.error(String, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      error in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • error

      public void error(Marker marker, String message, Object param, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.error(String, Object, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      error in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • error

      public void error(Marker marker, String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.error(String, Object[], Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      error in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • fatal

      public void fatal(String message)
      Description copied from interface: Logger
      Log a message at the FATAL level according to the specified format and arguments.
      Specified by:
      fatal in interface Logger
      Parameters:
      message - the message string to be logged.
    • fatal

      public void fatal(String message, Object param)
      Description copied from interface: Logger
      Log a message at the FATAL level according to the specified format and argument.
      Specified by:
      fatal in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
    • fatal

      public void fatal(String message, Object... params)
      Description copied from interface: Logger
      Log a message at the FATAL level according to the specified format and arguments.
      Specified by:
      fatal in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
    • fatal

      public void fatal(String message, Throwable cause)
      Description copied from interface: Logger
      Log an exception (throwable) at the FATAL level with an accompanying message.
      Specified by:
      fatal in interface Logger
      Parameters:
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • fatal

      public void fatal(String message, Object param, Throwable cause)
      Description copied from interface: Logger
      Log a message at the FATAL level according to the specified format and argument and an exception (throwable) with an accompanying message.
      Specified by:
      fatal in interface Logger
      Parameters:
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • fatal

      public void fatal(String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      Log a message at the FATAL level according to the specified format and arguments and an exception (throwable) with an accompanying message.
      Specified by:
      fatal in interface Logger
      Parameters:
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • fatal

      public void fatal(Marker marker, String message)
      Description copied from interface: Logger
      Log a message with the specific Marker at the FATAL level.
      Specified by:
      fatal in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
    • fatal

      public void fatal(Marker marker, String message, Object param)
      Description copied from interface: Logger
      This method is similar to Logger.fatal(String, Object) method except that the marker data is also taken into consideration.
      Specified by:
      fatal in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
    • fatal

      public void fatal(Marker marker, String message, Object... params)
      Description copied from interface: Logger
      This method is similar to Logger.fatal(String, Object...) method except that the marker data is also taken into consideration.
      Specified by:
      fatal in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
    • fatal

      public void fatal(Marker marker, String message, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.fatal(String, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      fatal in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      cause - the exception (throwable) to log.
    • fatal

      public void fatal(Marker marker, String message, Object param, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.fatal(String, Object, Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      fatal in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      param - the argument.
      cause - the exception (throwable) to log.
    • fatal

      public void fatal(Marker marker, String message, Object[] params, Throwable cause)
      Description copied from interface: Logger
      This method is similar to Logger.fatal(String, Object[], Throwable) method except that the marker data is also taken into consideration.
      Specified by:
      fatal in interface Logger
      Parameters:
      marker - the marker data specific to this log statement.
      message - the message string to be logged.
      params - an array of arguments.
      cause - the exception (throwable) to log.
    • getFullyQualifiedCallerName

      protected abstract String getFullyQualifiedCallerName()
      FQCN is a real service name.
      Returns:
      Fully Qualified Caller Name
    • handleNormalizedLoggingCall

      protected abstract void handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] arguments, Throwable cause)
      A method like LocationLogger for log caller
      Parameters:
      level - Logger level
      marker - Logger marker
      msg - Logger message
      arguments - Logger argument object
      cause - Logger Throwable