Klasse Log4J2Logger

java.lang.Object
org.apache.fulcrum.testcontainer.avalon.logger.Log4J2Logger
Alle implementierten Schnittstellen:
org.apache.avalon.framework.logger.Logger

@Deprecated public final class Log4J2Logger extends Object implements org.apache.avalon.framework.logger.Logger
Veraltet.
A Log4J2 wrapper class for Logger. - supports only minimal logging mechanism, without suppliers or objects. Use org.apache.fulcrum.yaafi.framework.logger.Log4j2Logger instead.
Version:
$Id$
Autor:
Turbine Development Team
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Log4J2Logger(org.apache.logging.log4j.Logger logImpl)
    Veraltet.
    Create a logger that delegates to specified category.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    final void
    debug(String message)
    Veraltet.
    Log a debug message.
    final void
    debug(String message, Throwable throwable)
    Veraltet.
    Log a debug message.
    final void
    error(String message)
    Veraltet.
    Log a error message.
    final void
    error(String message, Throwable throwable)
    Veraltet.
    Log a error message.
    final void
    fatalError(String message)
    Veraltet.
    Log a fatalError message.
    final void
    fatalError(String message, Throwable throwable)
    Veraltet.
    Log a fatalError message.
    final org.apache.avalon.framework.logger.Logger
    Veraltet.
    Create a new child logger.
    final void
    info(String message)
    Veraltet.
    Log a info message.
    final void
    info(String message, Throwable throwable)
    Veraltet.
    Log a info message.
    final boolean
    Veraltet.
    Determine if messages of priority "debug" will be logged.
    final boolean
    Veraltet.
    Determine if messages of priority "error" will be logged.
    final boolean
    Veraltet.
    Determine if messages of priority "fatalError" will be logged.
    final boolean
    Veraltet.
    Determine if messages of priority "info" will be logged.
    final boolean
    Veraltet.
    Determine if messages of priority "warn" will be logged.
    final void
    warn(String message)
    Veraltet.
    Log a warn message.
    final void
    warn(String message, Throwable throwable)
    Veraltet.
    Log a warn message.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Log4J2Logger

      public Log4J2Logger(org.apache.logging.log4j.Logger logImpl)
      Veraltet.
      Create a logger that delegates to specified category.
      Parameter:
      logImpl - the category to delegate to
  • Methodendetails

    • debug

      public final void debug(String message)
      Veraltet.
      Log a debug message.
      Angegeben von:
      debug in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
    • debug

      public final void debug(String message, Throwable throwable)
      Veraltet.
      Log a debug message.
      Angegeben von:
      debug in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
      throwable - the throwable
    • isDebugEnabled

      public final boolean isDebugEnabled()
      Veraltet.
      Determine if messages of priority "debug" will be logged.
      Angegeben von:
      isDebugEnabled in Schnittstelle org.apache.avalon.framework.logger.Logger
      Gibt zurück:
      true if "debug" messages will be logged
    • info

      public final void info(String message)
      Veraltet.
      Log a info message.
      Angegeben von:
      info in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
    • info

      public final void info(String message, Throwable throwable)
      Veraltet.
      Log a info message.
      Angegeben von:
      info in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
      throwable - the throwable
    • isInfoEnabled

      public final boolean isInfoEnabled()
      Veraltet.
      Determine if messages of priority "info" will be logged.
      Angegeben von:
      isInfoEnabled in Schnittstelle org.apache.avalon.framework.logger.Logger
      Gibt zurück:
      true if "info" messages will be logged
    • warn

      public final void warn(String message)
      Veraltet.
      Log a warn message.
      Angegeben von:
      warn in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
    • warn

      public final void warn(String message, Throwable throwable)
      Veraltet.
      Log a warn message.
      Angegeben von:
      warn in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
      throwable - the throwable
    • isWarnEnabled

      public final boolean isWarnEnabled()
      Veraltet.
      Determine if messages of priority "warn" will be logged.
      Angegeben von:
      isWarnEnabled in Schnittstelle org.apache.avalon.framework.logger.Logger
      Gibt zurück:
      true if "warn" messages will be logged
    • error

      public final void error(String message)
      Veraltet.
      Log a error message.
      Angegeben von:
      error in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
    • error

      public final void error(String message, Throwable throwable)
      Veraltet.
      Log a error message.
      Angegeben von:
      error in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
      throwable - the throwable
    • isErrorEnabled

      public final boolean isErrorEnabled()
      Veraltet.
      Determine if messages of priority "error" will be logged.
      Angegeben von:
      isErrorEnabled in Schnittstelle org.apache.avalon.framework.logger.Logger
      Gibt zurück:
      true if "error" messages will be logged
    • fatalError

      public final void fatalError(String message)
      Veraltet.
      Log a fatalError message.
      Angegeben von:
      fatalError in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
    • fatalError

      public final void fatalError(String message, Throwable throwable)
      Veraltet.
      Log a fatalError message.
      Angegeben von:
      fatalError in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      message - the message
      throwable - the throwable
    • isFatalErrorEnabled

      public final boolean isFatalErrorEnabled()
      Veraltet.
      Determine if messages of priority "fatalError" will be logged.
      Angegeben von:
      isFatalErrorEnabled in Schnittstelle org.apache.avalon.framework.logger.Logger
      Gibt zurück:
      true if "fatalError" messages will be logged
    • getChildLogger

      public final org.apache.avalon.framework.logger.Logger getChildLogger(String name)
      Veraltet.
      Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] Throws IllegalArgumentException if name has an empty element name
      Angegeben von:
      getChildLogger in Schnittstelle org.apache.avalon.framework.logger.Logger
      Parameter:
      name - the subname of this logger
      Gibt zurück:
      the new logger