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
KonstruktorenKonstruktorBeschreibungLog4J2Logger
(org.apache.logging.log4j.Logger logImpl) Veraltet.Create a logger that delegates to specified category. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal void
Veraltet.Log a debug message.final void
Veraltet.Log a debug message.final void
Veraltet.Log a error message.final void
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
getChildLogger
(String name) Veraltet.Create a new child logger.final void
Veraltet.Log a info message.final void
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
Veraltet.Log a warn message.final void
Veraltet.Log a warn message.
-
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
Veraltet.Log a debug message.- Angegeben von:
debug
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
debug
Veraltet.Log a debug message.- Angegeben von:
debug
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isDebugEnabled
public final boolean isDebugEnabled()Veraltet.Determine if messages of priority "debug" will be logged.- Angegeben von:
isDebugEnabled
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Gibt zurück:
- true if "debug" messages will be logged
-
info
Veraltet.Log a info message.- Angegeben von:
info
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
info
Veraltet.Log a info message.- Angegeben von:
info
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isInfoEnabled
public final boolean isInfoEnabled()Veraltet.Determine if messages of priority "info" will be logged.- Angegeben von:
isInfoEnabled
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Gibt zurück:
- true if "info" messages will be logged
-
warn
Veraltet.Log a warn message.- Angegeben von:
warn
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
warn
Veraltet.Log a warn message.- Angegeben von:
warn
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isWarnEnabled
public final boolean isWarnEnabled()Veraltet.Determine if messages of priority "warn" will be logged.- Angegeben von:
isWarnEnabled
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Gibt zurück:
- true if "warn" messages will be logged
-
error
Veraltet.Log a error message.- Angegeben von:
error
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
error
Veraltet.Log a error message.- Angegeben von:
error
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isErrorEnabled
public final boolean isErrorEnabled()Veraltet.Determine if messages of priority "error" will be logged.- Angegeben von:
isErrorEnabled
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Gibt zurück:
- true if "error" messages will be logged
-
fatalError
Veraltet.Log a fatalError message.- Angegeben von:
fatalError
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
fatalError
Veraltet.Log a fatalError message.- Angegeben von:
fatalError
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isFatalErrorEnabled
public final boolean isFatalErrorEnabled()Veraltet.Determine if messages of priority "fatalError" will be logged.- Angegeben von:
isFatalErrorEnabled
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Gibt zurück:
- true if "fatalError" messages will be logged
-
getChildLogger
Veraltet.Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] ThrowsIllegalArgumentException
if name has an empty element name- Angegeben von:
getChildLogger
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
name
- the subname of this logger- Gibt zurück:
- the new logger
-