|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jp.ne.dti.lares.foozy.ptlog.log4j.Log4jLogContext
Implementation for Log4jProvider
.
Log4jProvider
Constructor Summary | |
Log4jLogContext(org.apache.log4j.Logger logger)
Constructor. |
Method Summary | |
boolean |
enables(LogType type,
java.lang.String method)
Delegate request to Logger of Log4j. |
java.lang.String |
getSubject(boolean embedded)
Return subject name of logging request. |
void |
log(LogType type,
java.lang.String method,
java.lang.String message,
java.lang.Throwable throwable)
Delegate request to Logger of Log4j. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Log4jLogContext(org.apache.log4j.Logger logger)
logger
- Log4j specific context objectMethod Detail |
public java.lang.String getSubject(boolean embedded)
getSubject
in interface LogContext
embedded
- whether returned value is embedded in message or not.
public boolean enables(LogType type, java.lang.String method)
Logger
of Log4j.
enables
in interface LogContext
type
- of log record.method
- from which logging request is invoked.
public void log(LogType type, java.lang.String method, java.lang.String message, java.lang.Throwable throwable)
Logger
of Log4j.
log
in interface LogContext
type
- of loggingmethod
- from which logging is requestedmessage
- of loggingthrowable
- of logging
|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |