|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.bridge.Util.Logger
public static class Util.Logger
Only for internal use. Use Util.getLogger() instread. A bridge which uses log4j or the default logger.
Field Summary |
---|
Fields inherited from interface php.java.bridge.ILogger |
---|
DEBUG, ERROR, FATAL, INFO |
Constructor Summary | |
---|---|
Util.Logger()
Use chainsaw, if available or a default logger. |
|
Util.Logger(boolean useChainsaw,
ILogger logger)
|
|
Util.Logger(ILogger logger)
Use chainsaw, if available. |
Method Summary | |
---|---|
void |
log(int level,
java.lang.String msg)
Log a message. |
void |
printStackTrace(java.lang.Throwable t)
Log a stack trace |
void |
warn(java.lang.String msg)
Display a warning if logLevel >= 1 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util.Logger()
public Util.Logger(ILogger logger)
logger
- The specified logger.public Util.Logger(boolean useChainsaw, ILogger logger)
Method Detail |
---|
public void printStackTrace(java.lang.Throwable t)
printStackTrace
in interface ILogger
t
- The Throwablepublic void log(int level, java.lang.String msg)
log
in interface ILogger
level
- The log level 0: FATAL, 1:ERROR, 2: INFO, 3: DEBUGmsg
- The messagepublic void warn(java.lang.String msg)
warn
in interface ILogger
msg
- The warn message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |