Class Log4j2Logger
- java.lang.Object
-
- org.apache.turbine.services.avaloncomponent.Log4j2Logger
-
- All Implemented Interfaces:
org.apache.avalon.framework.logger.Logger
@Deprecated public final class Log4j2Logger extends Object implements org.apache.avalon.framework.logger.Logger
Deprecated.A Log4J2 wrapper class for Logger. Use org.apache.fulcrum.yaafi.framework.logger.Log4j2Logger instead.- Author:
- Thomas Vandahl
-
-
Constructor Summary
Constructors Constructor Description Log4j2Logger(org.apache.logging.log4j.Logger logImpl)
Deprecated.Create a logger that delegates to specified category.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
debug(String message)
Deprecated.Log a debug message.void
debug(String message, Throwable throwable)
Deprecated.Log a debug message.void
error(String message)
Deprecated.Log a error message.void
error(String message, Throwable throwable)
Deprecated.Log a error message.void
fatalError(String message)
Deprecated.Log a fatalError message.void
fatalError(String message, Throwable throwable)
Deprecated.Log a fatalError message.org.apache.avalon.framework.logger.Logger
getChildLogger(String name)
Deprecated.Create a new child logger.void
info(String message)
Deprecated.Log a info message.void
info(String message, Throwable throwable)
Deprecated.Log a info message.boolean
isDebugEnabled()
Deprecated.Determine if messages of priority "debug" will be logged.boolean
isErrorEnabled()
Deprecated.Determine if messages of priority "error" will be logged.boolean
isFatalErrorEnabled()
Deprecated.Determine if messages of priority "fatalError" will be logged.boolean
isInfoEnabled()
Deprecated.Determine if messages of priority "info" will be logged.boolean
isWarnEnabled()
Deprecated.Determine if messages of priority "warn" will be logged.void
warn(String message)
Deprecated.Log a warn message.void
warn(String message, Throwable throwable)
Deprecated.Log a warn message.
-
-
-
Constructor Detail
-
Log4j2Logger
public Log4j2Logger(org.apache.logging.log4j.Logger logImpl)
Deprecated.Create a logger that delegates to specified category.- Parameters:
logImpl
- the category to delegate to
-
-
Method Detail
-
debug
public void debug(String message)
Deprecated.Log a debug message.- Specified by:
debug
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the message
-
debug
public void debug(String message, Throwable throwable)
Deprecated.Log a debug message.- Specified by:
debug
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the messagethrowable
- the throwable
-
isDebugEnabled
public boolean isDebugEnabled()
Deprecated.Determine if messages of priority "debug" will be logged.- Specified by:
isDebugEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
- true if "debug" messages will be logged
-
info
public void info(String message)
Deprecated.Log a info message.- Specified by:
info
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the message
-
info
public void info(String message, Throwable throwable)
Deprecated.Log a info message.- Specified by:
info
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the messagethrowable
- the throwable
-
isInfoEnabled
public boolean isInfoEnabled()
Deprecated.Determine if messages of priority "info" will be logged.- Specified by:
isInfoEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
- true if "info" messages will be logged
-
warn
public void warn(String message)
Deprecated.Log a warn message.- Specified by:
warn
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the message
-
warn
public void warn(String message, Throwable throwable)
Deprecated.Log a warn message.- Specified by:
warn
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the messagethrowable
- the throwable
-
isWarnEnabled
public boolean isWarnEnabled()
Deprecated.Determine if messages of priority "warn" will be logged.- Specified by:
isWarnEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
- true if "warn" messages will be logged
-
error
public void error(String message)
Deprecated.Log a error message.- Specified by:
error
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the message
-
error
public void error(String message, Throwable throwable)
Deprecated.Log a error message.- Specified by:
error
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the messagethrowable
- the throwable
-
isErrorEnabled
public boolean isErrorEnabled()
Deprecated.Determine if messages of priority "error" will be logged.- Specified by:
isErrorEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
- true if "error" messages will be logged
-
fatalError
public void fatalError(String message)
Deprecated.Log a fatalError message.- Specified by:
fatalError
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the message
-
fatalError
public void fatalError(String message, Throwable throwable)
Deprecated.Log a fatalError message.- Specified by:
fatalError
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- the messagethrowable
- the throwable
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()
Deprecated.Determine if messages of priority "fatalError" will be logged.- Specified by:
isFatalErrorEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
- true if "fatalError" messages will be logged
-
getChildLogger
public org.apache.avalon.framework.logger.Logger getChildLogger(String name)
Deprecated.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- Specified by:
getChildLogger
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
name
- the subname of this logger- Returns:
- the new logger
-
-