Klasse ProseoLogger

java.lang.Object
de.dlr.proseo.logging.logger.ProseoLogger

public final class ProseoLogger extends Object
A centralized logging mechanism for ProsEO.
Autor:
Katharina Bassler
  • Konstruktordetails

    • ProseoLogger

      public ProseoLogger(Class<?> clazz)
      Generates a new logger named as the fully qualified class name.
      Parameter:
      clazz - The fully qualified class name.
  • Methodendetails

    • log

      public String log(ProseoMessage type, Object... msgParameters)
      Logging with automatic formatting including level, code, and message.
      Parameter:
      type - The enum specifying the type of the message.
      msgParameters - The message's parameters.
      Gibt zurück:
      Returns the logged message.
    • format

      public static String format(ProseoMessage type, Object... msgParameters)
      Automatic formatting including level, code, and message.
      Parameter:
      type - The enum specifying the type of the message.
      msgParameters - The message's parameters.
      Gibt zurück:
      Returns the logged message.
    • debug

      public void debug(String msg)
      Logging logic provided by Logback.
      Parameter:
      msg - the message to log
    • debug

      public void debug(String format, Object... arguments)
      Logging logic provided by Logback.
      Parameter:
      format - the format string
      arguments - the arguments to insert
    • debug

      public void debug(String msg, Throwable t)
      Logging logic provided by Logback.
      Parameter:
      msg - the message to log
      t - the exception (throwable) to log
    • trace

      public void trace(String msg)
      Logging logic provided by Logback.
      Parameter:
      msg - the message to log
    • trace

      public void trace(String format, Object... arguments)
      Logging logic provided by Logback.
      Parameter:
      format - the format string
      arguments - the arguments to insert
    • trace

      public void trace(String msg, Throwable t)
      Logging logic provided by Logback.
      Parameter:
      msg - the message to log
      t - the exception (throwable) to log
    • getName

      public String getName()
      Returns the logger's name.
      Gibt zurück:
      The logger's name as a String.
    • isTraceEnabled

      public boolean isTraceEnabled()
      Indicates whether the logger is trace enabled.
      Gibt zurück:
      The logging level.
    • isDebugEnabled

      public boolean isDebugEnabled()
      Indicates whether the logger is debug enabled.
      Gibt zurück:
      The logging level.
    • isInfoEnabled

      public boolean isInfoEnabled()
      Indicates whether the logger is info enabled.
      Gibt zurück:
      The logging level.
    • isWarnEnabled

      public boolean isWarnEnabled()
      Indicates whether the logger is warn enabled.
      Gibt zurück:
      The logging level.
    • isErrorEnabled

      public boolean isErrorEnabled()
      Indicates whether the logger is error enabled.
      Gibt zurück:
      The logging level.