org.ujorm.logger
Interface UjoLogger

All Known Implementing Classes:
UjoLoggerFactory

public interface UjoLogger

Ujorm Logger Interface

Author:
Pavel Ponec

Method Summary
 boolean isLoggable(java.util.logging.Level INFO)
          Check if a message of the given level would actually be logged by this logger.
 void log(java.util.logging.Level level, java.lang.String message)
          Log a message, with no arguments.
 void log(java.util.logging.Level SEVERE, java.lang.String message, java.lang.Object... parameters)
          Log a message, with an array of object arguments.
 void log(java.util.logging.Level level, java.lang.String message, java.lang.Throwable e)
          Log a message, with associated Throwable information.
 

Method Detail

isLoggable

boolean isLoggable(java.util.logging.Level INFO)
Check if a message of the given level would actually be logged by this logger. This check is based on the Loggers effective level, which may be inherited from its parent.

Parameters:
level - a message logging level
Returns:
true if the given message level is currently being logged.

log

void log(java.util.logging.Level level,
         java.lang.String message)
Log a message, with no arguments.

If the logger is currently enabled for the given message level then the given message is forwarded to all the registered output Handler objects.

Parameters:
level - One of the message level identifiers, e.g. SEVERE
msg - The string message (or a key in the message catalog)

log

void log(java.util.logging.Level level,
         java.lang.String message,
         java.lang.Throwable e)
Log a message, with associated Throwable information.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers.

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus is it processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

Parameters:
level - One of the message level identifiers, e.g. SEVERE
msg - The string message (or a key in the message catalog)
thrown - Throwable associated with log message.

log

void log(java.util.logging.Level SEVERE,
         java.lang.String message,
         java.lang.Object... parameters)
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.

Parameters:
level - One of the message level identifiers, e.g. SEVERE
msg - The string message (or a key in the message catalog)
params - array of parameters to the message


Copyright © 2007-2012 PPonec