Class ErrorLogger

java.lang.Object
jp.ecuacion.lib.core.logging.internal.AbstractLogger
jp.ecuacion.lib.core.logging.ErrorLogger

public class ErrorLogger extends jp.ecuacion.lib.core.logging.internal.AbstractLogger
Logs messages which are surveilled by survaillance service and alert error occurence to administrators.

It doesn't log details, but just one-line messages. Details should be logged by DetailLogger.

Usually error loglevel is used, but it can be used for alert by warn and tell the warning is resolved by info loglevel.
So warn and info loglevel can be used.

Available loglevels are as follows:

  • error: uses for error occurence
  • warn : uses for warning
  • info : uses for recover from warn state
  • Nested Class Summary

    Nested classes/interfaces inherited from class jp.ecuacion.lib.core.logging.internal.AbstractLogger

    jp.ecuacion.lib.core.logging.internal.AbstractLogger.LogLevel
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance with a fixed logger name.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    error(String message)
    Logs message with "error" loglevel.
    void
    info(String message)
    Logs message with "info" loglevel.
    void
    warn(String message)
    Logs message with "warn" loglevel.

    Methods inherited from class jp.ecuacion.lib.core.logging.internal.AbstractLogger

    log, logThrowable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorLogger

      public ErrorLogger()
      Constructs a new instance with a fixed logger name.
  • Method Details

    • info

      public void info(@Nonnull String message)
      Logs message with "info" loglevel.
      Parameters:
      message - message to log. Cannot be null.
    • warn

      public void warn(@Nonnull String message)
      Logs message with "warn" loglevel.
      Parameters:
      message - message to log. Cannot be null.
    • error

      public void error(@Nonnull String message)
      Logs message with "error" loglevel.
      Parameters:
      message - message to log. Cannot be null.