|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.util.LoggingUtil
public class LoggingUtil
Monolog logger implementation. This class is used to format various logs. it can be used as a static class or as a wrapper object of a logger. The methods add to the resulting message a "ClassName-MethodName" information. (only for DEBUG and INFO level) TODO : Rename to MonologLogger and move to kernel implementation
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
log
|
protected java.lang.String |
name
|
| Constructor Summary | |
|---|---|
LoggingUtil(java.util.logging.Logger logger)
Creates a new instance of LoggingUtil |
|
LoggingUtil(java.util.logging.Logger logger,
java.lang.String loggerName)
Creates a new instance of LoggingUtil |
|
| Method Summary | |
|---|---|
void |
call()
if log is enabled, Log as DEBUG : -CALL - |
void |
call(java.lang.Object msg)
if log is enabled, Log as DEBUG : -CALL - |
void |
debug(java.lang.Object message)
if log is enabled, Log as DEBUG the message |
void |
end()
if log is enabled, Log as DEBUG : - END - |
void |
end(java.lang.Object msg)
if log is enabled, Log as DEBUG the message : - END -msg |
void |
error(java.lang.Object message)
if log is enabled, Log as ERROR the message |
void |
error(java.lang.Object message,
java.lang.Throwable throwable)
if log is enabled, Log as ERROR the exception |
java.util.logging.Logger |
getLogger()
Allow to return the logger implementation wrapped by LoggingUtil |
java.lang.String |
getName()
|
void |
info(java.lang.Object message)
if log is enabled, Log as INFO the message |
void |
info(java.lang.Object message,
java.lang.Throwable error)
if log is enabled, Log as INFO the message and error |
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isWarnEnabled()
|
void |
start()
if log is enabled, Log as DEBUG : -START- |
void |
start(java.lang.Object msg)
if log is enabled, Log as DEBUG the message : -START-msg |
void |
warning(java.lang.Object message)
if log is enabled, Log as warning the message |
void |
warning(java.lang.Object message,
java.lang.Throwable throwable)
if log is enabled, Log as warning the exception |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger log
protected java.lang.String name
| Constructor Detail |
|---|
public LoggingUtil(java.util.logging.Logger logger)
logger -
public LoggingUtil(java.util.logging.Logger logger,
java.lang.String loggerName)
logger - loggerName - | Method Detail |
|---|
public void call()
call in interface Loggerpublic void call(java.lang.Object msg)
call in interface Loggerpublic void start()
start in interface Loggerpublic void start(java.lang.Object msg)
start in interface Loggerpublic void end()
end in interface Loggerpublic void end(java.lang.Object msg)
end in interface Loggerpublic void debug(java.lang.Object message)
debug in interface Loggerpublic void info(java.lang.Object message)
info in interface Logger
public void info(java.lang.Object message,
java.lang.Throwable error)
info in interface Loggerpublic void warning(java.lang.Object message)
warning in interface Logger
public void warning(java.lang.Object message,
java.lang.Throwable throwable)
warning in interface Loggerpublic void error(java.lang.Object message)
error in interface Logger
public void error(java.lang.Object message,
java.lang.Throwable throwable)
error in interface Loggerpublic boolean isDebugEnabled()
isDebugEnabled in interface Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggerpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggerpublic boolean isErrorEnabled()
isErrorEnabled in interface Loggerpublic java.lang.String getName()
getName in interface Loggerpublic java.util.logging.Logger getLogger()
Logger
getLogger in interface Logger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||