| org.objectweb.util.monolog.api.Logger
Logger | public interface Logger extends Handler(Code) | | A Logger implementation receives event messages from an object and exports
them. Each Logger is associated with a log level and discards log requests
that are below this level. Furthermore the Logger interface extends the Handler
interface and represents therefore a type of output.
author: S.Chassande-Barrioz |
Method Summary | |
int | getCurrentIntLevel() | Level | getCurrentLevel() | boolean | isLoggable(int level) Check if a message of the given level would actually be logged by this logger. | boolean | isLoggable(Level l) Check if a message of the given level would actually be logged by this logger. | boolean | isOn() Check if this logger is enabled. | void | log(int level, Object message) Log a message, with no arguments. | void | log(Level level, Object message) Log a message, with no arguments. | void | log(int level, Object message, Throwable throwable) Log a message, with a throwable arguments which can represent an
error or a context.. | void | log(Level level, Object message, Throwable throwable) Log a message, with a throwable arguments which can represent an
error or a context.. | void | log(int level, Object message, Object location, Object method) Log a message, with a location and method arguments. | void | log(Level l, Object message, Object location, Object method) Log a message, with a location and method arguments. | void | log(int level, Object message, Throwable throwable, Object location, Object method) Log a message, with a location, method and throwable arguments. | void | log(Level level, Object message, Throwable throwable, Object location, Object method) Log a message, with a location, method and throwable arguments. | void | setIntLevel(int level) | void | setLevel(Level l) Permits to set the level with a Level instance. | void | turnOff() | void | turnOn() |
getCurrentIntLevel | int getCurrentIntLevel()(Code) | | Returns the current level value under the integer format
|
getCurrentLevel | Level getCurrentLevel()(Code) | | Returns the current level value under the Level format
|
isLoggable | boolean isLoggable(int level)(Code) | | Check if a message of the given level would actually be logged by this logger.
|
isLoggable | boolean isLoggable(Level l)(Code) | | Check if a message of the given level would actually be logged by this logger.
|
isOn | boolean isOn()(Code) | | Check if this logger is enabled.
|
log | void log(int level, Object message)(Code) | | Log a message, with no arguments.
If the logger is currently enabled for the given message level then the
given message is treated
|
log | void log(Level level, Object message)(Code) | | Log a message, with no arguments.
If the logger is currently enabled for the given message level then the
given message is treated
|
log | void log(int level, Object message, Throwable throwable)(Code) | | Log a message, with a throwable arguments which can represent an
error or a context..
|
log | void log(Level level, Object message, Throwable throwable)(Code) | | Log a message, with a throwable arguments which can represent an
error or a context..
|
log | void log(int level, Object message, Object location, Object method)(Code) | | 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.
|
log | void log(Level l, Object message, Object location, Object method)(Code) | | 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.
|
log | void log(int level, Object message, Throwable throwable, Object location, Object method)(Code) | | 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.
|
log | void log(Level level, Object message, Throwable throwable, Object location, Object method)(Code) | | 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.
|
setIntLevel | void setIntLevel(int level)(Code) | | Permits to set the level with an integer value
|
setLevel | void setLevel(Level l)(Code) | | Permits to set the level with a Level instance.
|
turnOff | void turnOff()(Code) | | Disables this logger
|
turnOn | void turnOn()(Code) | | Enables this logger
|
|
|