Class JBossLoggingApacheLoggerBridge
- java.lang.Object
-
- org.apache.activemq.artemis.logs.JBossLoggingApacheLoggerBridge
-
- All Implemented Interfaces:
Log
public class JBossLoggingApacheLoggerBridge extends Object implements Log
There is an issue on the Testsuite, as it's not possible to bring JBossLogging on the booting classLoader. As a result classes like BeanUtils will be using apache logging, which will not have the bootstrapping necessary. As a result BeanUtils is keeping showing log.debug into the test output and test console. This class will give an opportunity to the CI and our applications to use proper logging even on the testsuite.
-
-
Constructor Summary
Constructors Constructor Description JBossLoggingApacheLoggerBridge(Class clazz)JBossLoggingApacheLoggerBridge(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object message)Logs a message with debug log level.voiddebug(Object message, Throwable t)Logs an error with debug log level.voiderror(Object message)Logs a message with error log level.voiderror(Object message, Throwable t)Logs an error with error log level.voidfatal(Object message)Logs a message with fatal log level.voidfatal(Object message, Throwable t)Logs an error with fatal log level.voidinfo(Object message)Logs a message with info log level.voidinfo(Object message, Throwable t)Logs an error with info log level.booleanisDebugEnabled()Is debug org.apache.commons.logging currently enabled?booleanisErrorEnabled()Is error org.apache.commons.logging currently enabled?booleanisFatalEnabled()Is fatal org.apache.commons.logging currently enabled?booleanisInfoEnabled()Is info org.apache.commons.logging currently enabled?booleanisTraceEnabled()Is trace org.apache.commons.logging currently enabled?booleanisWarnEnabled()Is warn org.apache.commons.logging currently enabled?voidtrace(Object message)Logs a message with trace log level.voidtrace(Object message, Throwable t)Logs an error with trace log level.voidwarn(Object message)Logs a message with warn log level.voidwarn(Object message, Throwable t)Logs an error with warn log level.
-
-
-
Method Detail
-
debug
public void debug(Object message)
Description copied from interface:LogLogs a message with debug log level.
-
debug
public void debug(Object message, Throwable t)
Description copied from interface:LogLogs an error with debug log level.
-
error
public void error(Object message)
Description copied from interface:LogLogs a message with error log level.
-
error
public void error(Object message, Throwable t)
Description copied from interface:LogLogs an error with error log level.
-
fatal
public void fatal(Object message)
Description copied from interface:LogLogs a message with fatal log level.
-
fatal
public void fatal(Object message, Throwable t)
Description copied from interface:LogLogs an error with fatal log level.
-
info
public void info(Object message)
Description copied from interface:LogLogs a message with info log level.
-
info
public void info(Object message, Throwable t)
Description copied from interface:LogLogs an error with info log level.
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:LogIs debug org.apache.commons.logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than debug.- Specified by:
isDebugEnabledin interfaceLog- Returns:
- true if debug is enabled in the underlying logger.
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:LogIs error org.apache.commons.logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than error.- Specified by:
isErrorEnabledin interfaceLog- Returns:
- true if error is enabled in the underlying logger.
-
isFatalEnabled
public boolean isFatalEnabled()
Description copied from interface:LogIs fatal org.apache.commons.logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than fatal.- Specified by:
isFatalEnabledin interfaceLog- Returns:
- true if fatal is enabled in the underlying logger.
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:LogIs info org.apache.commons.logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than info.- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if info is enabled in the underlying logger.
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:LogIs trace org.apache.commons.logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than trace.- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if trace is enabled in the underlying logger.
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:LogIs warn org.apache.commons.logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than warn.- Specified by:
isWarnEnabledin interfaceLog- Returns:
- true if warn is enabled in the underlying logger.
-
trace
public void trace(Object message)
Description copied from interface:LogLogs a message with trace log level.
-
trace
public void trace(Object message, Throwable t)
Description copied from interface:LogLogs an error with trace log level.
-
warn
public void warn(Object message)
Description copied from interface:LogLogs a message with warn log level.
-
-