|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.logging.log4j.Log4jLoggerPlugin
public class Log4jLoggerPlugin
Delegate for org.jboss.logging.Logger logging to log4j. Body of implementation mainly copied from old Logger implementation.
Logger
,
LoggerPlugin
Constructor Summary | |
---|---|
Log4jLoggerPlugin()
|
Method Summary | |
---|---|
void |
debug(Object message)
Issue a log msg with a level of DEBUG. |
void |
debug(Object message,
Throwable t)
Issue a log msg and throwable with a level of DEBUG. |
void |
debug(String loggerFcqn,
Object message,
Throwable t)
|
void |
error(Object message)
Issue a log msg with a level of ERROR. |
void |
error(Object message,
Throwable t)
Issue a log msg and throwable with a level of ERROR. |
void |
error(String loggerFcqn,
Object message,
Throwable t)
|
void |
fatal(Object message)
Issue a log msg with a level of FATAL. |
void |
fatal(Object message,
Throwable t)
Issue a log msg and throwable with a level of FATAL. |
void |
fatal(String loggerFcqn,
Object message,
Throwable t)
|
org.apache.log4j.Category |
getCategory()
|
org.apache.log4j.Logger |
getLogger()
Exposes the delegate Log4j Logger. |
org.jboss.logging.MDCProvider |
getMDCProvider()
|
org.jboss.logging.NDCProvider |
getNDCProvider()
|
void |
info(Object message)
Issue a log msg with a level of INFO. |
void |
info(Object message,
Throwable t)
Issue a log msg and throwable with a level of INFO. |
void |
info(String loggerFcqn,
Object message,
Throwable t)
|
void |
init(String name)
|
boolean |
isDebugEnabled()
Deprecated. |
boolean |
isInfoEnabled()
Deprecated. |
boolean |
isTraceEnabled()
|
void |
log(org.apache.log4j.Level l,
Object message)
Issue a log msg with the given level. |
void |
log(org.apache.log4j.Level l,
Object message,
Throwable t)
Issue a log msg with the given level. |
void |
log(org.apache.log4j.Priority p,
Object message)
Deprecated. Use Level versions. |
void |
log(org.apache.log4j.Priority p,
Object message,
Throwable t)
Deprecated. Use Level versions. |
void |
trace(Object message)
Issue a log msg with a level of TRACE. |
void |
trace(Object message,
Throwable t)
Issue a log msg and throwable with a level of TRACE. |
void |
trace(String loggerFcqn,
Object message,
Throwable t)
|
void |
warn(Object message)
Issue a log msg with a level of WARN. |
void |
warn(Object message,
Throwable t)
Issue a log msg and throwable with a level of WARN. |
void |
warn(String loggerFcqn,
Object message,
Throwable t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log4jLoggerPlugin()
Method Detail |
---|
public void init(String name)
init
in interface org.jboss.logging.LoggerPlugin
public org.apache.log4j.Category getCategory()
public org.apache.log4j.Logger getLogger()
public boolean isTraceEnabled()
isTraceEnabled
in interface org.jboss.logging.LoggerPlugin
public void trace(Object message)
trace
in interface org.jboss.logging.LoggerPlugin
public void trace(Object message, Throwable t)
trace
in interface org.jboss.logging.LoggerPlugin
public void trace(String loggerFcqn, Object message, Throwable t)
@Deprecated public boolean isDebugEnabled()
isDebugEnabled
in interface org.jboss.logging.LoggerPlugin
trace(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void debug(Object message)
debug
in interface org.jboss.logging.LoggerPlugin
public void debug(Object message, Throwable t)
debug
in interface org.jboss.logging.LoggerPlugin
public void debug(String loggerFcqn, Object message, Throwable t)
@Deprecated public boolean isInfoEnabled()
isInfoEnabled
in interface org.jboss.logging.LoggerPlugin
info(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void info(Object message)
info
in interface org.jboss.logging.LoggerPlugin
public void info(Object message, Throwable t)
info
in interface org.jboss.logging.LoggerPlugin
public void info(String loggerFcqn, Object message, Throwable t)
public void warn(Object message)
warn
in interface org.jboss.logging.LoggerPlugin
public void warn(Object message, Throwable t)
warn
in interface org.jboss.logging.LoggerPlugin
public void warn(String loggerFcqn, Object message, Throwable t)
public void error(Object message)
error
in interface org.jboss.logging.LoggerPlugin
public void error(Object message, Throwable t)
error
in interface org.jboss.logging.LoggerPlugin
public void error(String loggerFcqn, Object message, Throwable t)
public void fatal(Object message)
fatal
in interface org.jboss.logging.LoggerPlugin
public void fatal(Object message, Throwable t)
fatal
in interface org.jboss.logging.LoggerPlugin
public void fatal(String loggerFcqn, Object message, Throwable t)
public void log(org.apache.log4j.Priority p, Object message)
p
- the prioritymessage
- the messagepublic void log(org.apache.log4j.Priority p, Object message, Throwable t)
p
- the prioritymessage
- the messaget
- the throwablepublic void log(org.apache.log4j.Level l, Object message)
l
- the levelmessage
- the messagepublic void log(org.apache.log4j.Level l, Object message, Throwable t)
l
- the levelmessage
- the messaget
- the throwablepublic org.jboss.logging.NDCProvider getNDCProvider()
getNDCProvider
in interface org.jboss.logging.NDCSupport
public org.jboss.logging.MDCProvider getMDCProvider()
getMDCProvider
in interface org.jboss.logging.MDCSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |