Package org.objectweb.util.monolog.jul
Class SimpleLogger
- java.lang.Object
-
- org.objectweb.util.monolog.jul.SimpleLogger
-
-
Constructor Summary
Constructors Constructor Description SimpleLogger(String topic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()booleanisLoggable(Level level)Gets the Loggable attribute of the LoggerImpl objectvoidlog(Level level, String msg)Log a message, with no arguments.voidlog(Level level, String msg, Object param1)Log a message, with one object parameter.voidlog(Level level, String msg, Object[] params)Log a message, with an array of object arguments.voidlog(Level level, String msg, Throwable t)Log a message, with a throwable arguments which can represent an error or a context..voidsetLevel(String level)Sets the Level attribute of the Logger object.voidsetLevel(Level level)Sets the IntLevel attribute of the LoggerImpl object
-
-
-
Field Detail
-
logger
Logger logger
-
-
Constructor Detail
-
SimpleLogger
SimpleLogger(String topic)
-
-
Method Detail
-
setLevel
public void setLevel(Level level)
Sets the IntLevel attribute of the LoggerImpl object
-
setLevel
public void setLevel(String level) throws Exception
Description copied from interface:LoggerSets the Level attribute of the Logger object. If level is null inherits from parent logger.
-
isLoggable
public boolean isLoggable(Level level)
Gets the Loggable attribute of the LoggerImpl object- Specified by:
isLoggablein interfaceLogger- Parameters:
level- Description of Parameter- Returns:
- The Loggable value
-
log
public void log(Level level, String msg)
Log a message, with no arguments. If the logger is currently enabled for the given message level then the given message is treated
-
log
public void log(Level level, String msg, Throwable t)
Log a message, with a throwable arguments which can represent an error or a context..
-
log
public void log(Level level, String msg, Object param1)
Log a message, with one object parameter.If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.
-
log
public void log(Level level, String msg, Object[] params)
Log a message, with an array of object arguments.If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.
-
-