|
||||||||||
| 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 |
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 |
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. |
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 |
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 |
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. |
| 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.LoggerPluginpublic org.apache.log4j.Category getCategory()
public org.apache.log4j.Logger getLogger()
public boolean isTraceEnabled()
isTraceEnabled in interface org.jboss.logging.LoggerPluginpublic 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@Deprecated public boolean isDebugEnabled()
isDebugEnabled in interface org.jboss.logging.LoggerPlugintrace(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@Deprecated public boolean isInfoEnabled()
isInfoEnabled in interface org.jboss.logging.LoggerPlugininfo(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.LoggerPluginpublic void warn(Object message)
warn in interface org.jboss.logging.LoggerPlugin
public void warn(Object message,
Throwable t)
warn in interface org.jboss.logging.LoggerPluginpublic void error(Object message)
error in interface org.jboss.logging.LoggerPlugin
public void error(Object message,
Throwable t)
error in interface org.jboss.logging.LoggerPluginpublic 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 log(org.apache.log4j.Priority p,
Object message)
p - the prioritymessage - the message
public void log(org.apache.log4j.Priority p,
Object message,
Throwable t)
p - the prioritymessage - the messaget - the throwable
public void log(org.apache.log4j.Level l,
Object message)
l - the levelmessage - the message
public 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.NDCSupportpublic 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 | |||||||||