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 voidVeraltet.Log a debug message.final voidVeraltet.Log a debug message.final voidVeraltet.Log a error message.final voidVeraltet.Log a error message.final voidfatalError(String message) Veraltet.Log a fatalError message.final voidfatalError(String message, Throwable throwable) Veraltet.Log a fatalError message.final org.apache.avalon.framework.logger.LoggergetChildLogger(String name) Veraltet.Create a new child logger.final voidVeraltet.Log a info message.final voidVeraltet.Log a info message.final booleanVeraltet.Determine if messages of priority "debug" will be logged.final booleanVeraltet.Determine if messages of priority "error" will be logged.final booleanVeraltet.Determine if messages of priority "fatalError" will be logged.final booleanVeraltet.Determine if messages of priority "info" will be logged.final booleanVeraltet.Determine if messages of priority "warn" will be logged.final voidVeraltet.Log a warn message.final voidVeraltet.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:
debugin Schnittstelleorg.apache.avalon.framework.logger.Logger- Parameter:
message- the message
-
debug
Veraltet.Log a debug message.- Angegeben von:
debugin 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:
isDebugEnabledin Schnittstelleorg.apache.avalon.framework.logger.Logger- Gibt zurück:
- true if "debug" messages will be logged
-
info
Veraltet.Log a info message.- Angegeben von:
infoin Schnittstelleorg.apache.avalon.framework.logger.Logger- Parameter:
message- the message
-
info
Veraltet.Log a info message.- Angegeben von:
infoin 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:
isInfoEnabledin Schnittstelleorg.apache.avalon.framework.logger.Logger- Gibt zurück:
- true if "info" messages will be logged
-
warn
Veraltet.Log a warn message.- Angegeben von:
warnin Schnittstelleorg.apache.avalon.framework.logger.Logger- Parameter:
message- the message
-
warn
Veraltet.Log a warn message.- Angegeben von:
warnin 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:
isWarnEnabledin Schnittstelleorg.apache.avalon.framework.logger.Logger- Gibt zurück:
- true if "warn" messages will be logged
-
error
Veraltet.Log a error message.- Angegeben von:
errorin Schnittstelleorg.apache.avalon.framework.logger.Logger- Parameter:
message- the message
-
error
Veraltet.Log a error message.- Angegeben von:
errorin 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:
isErrorEnabledin Schnittstelleorg.apache.avalon.framework.logger.Logger- Gibt zurück:
- true if "error" messages will be logged
-
fatalError
Veraltet.Log a fatalError message.- Angegeben von:
fatalErrorin Schnittstelleorg.apache.avalon.framework.logger.Logger- Parameter:
message- the message
-
fatalError
Veraltet.Log a fatalError message.- Angegeben von:
fatalErrorin 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:
isFatalErrorEnabledin 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] ThrowsIllegalArgumentExceptionif name has an empty element name- Angegeben von:
getChildLoggerin Schnittstelleorg.apache.avalon.framework.logger.Logger- Parameter:
name- the subname of this logger- Gibt zurück:
- the new logger
-