Klasse Log4j2Logger
java.lang.Object
org.apache.fulcrum.yaafi.framework.logger.Log4j2Logger
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.logger.Logger
A Log4J2 wrapper class for Logger.
Replaces same class in Fulcrum Testcontainer and Turbine
- Autor:
- Georg Kallidis
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLog4j2Logger
(org.apache.logging.log4j.Logger logImpl) Create a logger that delegates to specified category. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Log a debug message.void
Log a debug message.void
Log a error message.void
Log a error message.void
fatalError
(String message) Log a fatalError message.void
fatalError
(String message, Throwable throwable) Log a fatalError message.org.apache.avalon.framework.logger.Logger
getChildLogger
(String name) Create a new child logger.void
Log a info message.void
Log a info message.boolean
Determine if messages of priority "debug" will be logged.boolean
Determine if messages of priority "error" will be logged.boolean
Determine if messages of priority "fatalError" will be logged.boolean
Determine if messages of priority "info" will be logged.boolean
Determine if messages of priority "warn" will be logged.void
Log a warn message.void
Log a warn message.
-
Konstruktordetails
-
Log4j2Logger
public Log4j2Logger(org.apache.logging.log4j.Logger logImpl) Create a logger that delegates to specified category.- Parameter:
logImpl
- the category to delegate to
-
-
Methodendetails
-
debug
Log a debug message.- Angegeben von:
debug
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
debug
Log a debug message.- Angegeben von:
debug
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isDebugEnabled
public boolean isDebugEnabled()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
Log a info message.- Angegeben von:
info
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
info
Log a info message.- Angegeben von:
info
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isInfoEnabled
public boolean isInfoEnabled()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
Log a warn message.- Angegeben von:
warn
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
warn
Log a warn message.- Angegeben von:
warn
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isWarnEnabled
public boolean isWarnEnabled()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
Log a error message.- Angegeben von:
error
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
error
Log a error message.- Angegeben von:
error
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isErrorEnabled
public boolean isErrorEnabled()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
Log a fatalError message.- Angegeben von:
fatalError
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the message
-
fatalError
Log a fatalError message.- Angegeben von:
fatalError
in Schnittstelleorg.apache.avalon.framework.logger.Logger
- Parameter:
message
- the messagethrowable
- the throwable
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()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
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
-