Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface Logger
extends Handler
Fields inherited from interface org.objectweb.util.monolog.api.Handler | |
APPEND_MODE_ATTRIBUTE , BUFFER_ATTRIBUTE , CONSOLE_HANDLER_TYPE , FILE_HANDLER_TYPE , FILE_NUMBER_ATTRIBUTE , GENERIC_HANDLER_TYPE , LEVEL_ATTRIBUTE , LOGGER_HANDLER_TYPE , MAX_SIZE_ATTRIBUTE , OUTPUT_ATTRIBUTE , PATTERN_ATTRIBUTE , ROLLING_FILE_HANDLER_TYPE |
Method Summary | |
int |
|
Level |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void | |
void | |
void |
|
void | |
void |
|
void |
|
Methods inherited from interface org.objectweb.util.monolog.api.Handler | |
getAttribute , getAttributeNames , getName , getType , setAttribute , setName |
public int getCurrentIntLevel()
Returns the current level value under the integer format
public Level getCurrentLevel()
Returns the current level value under the Level format
public boolean isLoggable(int level)
Check if a message of the given level would actually be logged by this logger.
public boolean isLoggable(Level l)
Check if a message of the given level would actually be logged by this logger.
public boolean isOn()
Check if this logger is enabled.
public void log(int level, Object message)
Log a message, with no arguments. If the logger is currently enabled for the given message level then the given message is treated
public void log(int level, Object message, Object location, Object method)
Log a message, with a location and method arguments. The location parameter can be the object instance which logs the event, or a string representation of the object. The method argument can be a java.lang.reflect.Method or a string which represents the method name.
public void log(int level, Object message, Throwable throwable)
Log a message, with a throwable arguments which can represent an error or a context..
public void log(int level, Object message, Throwable throwable, Object location, Object method)
Log a message, with a location, method and throwable arguments. The location parameter can be the object instance which logs the event, or a string representation of the object.. The method argument can be a java.lang.reflect.Method or a string which represents the method name. The throwable parameter permits to log an Exception.
public void log(Level level, Object message)
Log a message, with no arguments. If the logger is currently enabled for the given message level then the given message is treated
public void log(Level l, Object message, Object location, Object method)
Log a message, with a location and method arguments. The location parameter can be the object instance which logs the event, or a string representation of the object. The method argument can be a java.lang.reflect.Method or a string which represents the method name.
public void log(Level level, Object message, Throwable throwable)
Log a message, with a throwable arguments which can represent an error or a context..
public void log(Level level, Object message, Throwable throwable, Object location, Object method)
Log a message, with a location, method and throwable arguments. The location parameter can be the object instance which logs the event, or a string representation of the object.. The method argument can be a java.lang.reflect.Method or a string which represents the method name. The throwable parameter permits to log an Exception.
public void setIntLevel(int level)
Permits to set the level with an integer value
public void turnOff()
Disables this logger
public void turnOn()
Enables this logger