|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.logging.LogAdapter
public class LogAdapter
Temporary class for maintaing old applications that uses deprecated com.lutris.logging.*
Constructor Summary | |
---|---|
LogAdapter()
|
|
LogAdapter(org.apache.log4j.Logger logger)
|
Method Summary | |
---|---|
int |
getLevel(java.lang.String level)
|
org.apache.log4j.Logger |
getLogger()
|
com.lutris.logging.LogWriter |
getLogWriter(int level)
Create a LogWrite associated with a particular level. |
com.lutris.logging.LogWriter |
getLogWriter(java.lang.String level)
Create a LogWrite associated with a particular level. |
boolean |
isEnabled(int level)
Determine if logging is enabled for the specified level. |
boolean |
isEnabled(java.lang.String level)
Determine if logging is enabled for the specified level. |
void |
setLogger(org.apache.log4j.Logger log)
|
void |
write(int level,
java.lang.String msg)
Write a string to the log file. |
void |
write(int level,
java.lang.String msg,
java.lang.Throwable throwable)
Write a string and exception to the log file. |
void |
write(java.lang.String level,
java.lang.String msg)
Write a string to the log file. |
void |
write(java.lang.String level,
java.lang.String msg,
java.lang.Throwable throwable)
Write a string and exception to the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogAdapter()
public LogAdapter(org.apache.log4j.Logger logger)
Method Detail |
---|
public void setLogger(org.apache.log4j.Logger log)
public org.apache.log4j.Logger getLogger()
public int getLevel(java.lang.String level)
getLevel
in interface com.lutris.logging.LogChannel
public boolean isEnabled(int level)
isEnabled
in interface com.lutris.logging.LogChannel
public boolean isEnabled(java.lang.String level)
isEnabled
in interface com.lutris.logging.LogChannel
public void write(int level, java.lang.String msg)
write
in interface com.lutris.logging.LogChannel
public void write(int level, java.lang.String msg, java.lang.Throwable throwable)
write
in interface com.lutris.logging.LogChannel
public void write(java.lang.String level, java.lang.String msg)
write
in interface com.lutris.logging.LogChannel
public void write(java.lang.String level, java.lang.String msg, java.lang.Throwable throwable)
write
in interface com.lutris.logging.LogChannel
public com.lutris.logging.LogWriter getLogWriter(java.lang.String level)
getLogWriter
in interface com.lutris.logging.LogChannel
level
- Symbolic level that is to be checked.
public com.lutris.logging.LogWriter getLogWriter(int level)
getLogWriter
in interface com.lutris.logging.LogChannel
level
- Numeric level that is to be checked.
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |