Snapper 1.0 API

org.enhydra.snapper.api.logging
Interface LoggingManager

All Known Implementing Classes:
MonologLoggingManager, StandardLoggingManager

public interface LoggingManager

LoggingManager handles logging in Shark.

Author:
Sasa Bojanic, Vladimir Puskas, Tanja Jovanovic, Igor Smirnov

Method Summary
 void configure(java.util.Properties prop)
          Method configure is called at Shark start up, to configure implementation of LoggingManager.
 void debug(java.lang.String msg)
          Log a message object with the DEBUG level.
 void debug(java.lang.String msg, RootException ex)
          Log a message object with the DEBUG level.
 void debug(java.lang.String channel, java.lang.String msg)
          Log a message object with the DEBUG level.
 void debug(java.lang.String channel, java.lang.String msg, RootException ex)
          Log a message object with the DEBUG level.
 void error(java.lang.String msg)
          Log a message object with the ERROR Level.
 void error(java.lang.String msg, RootException ex)
          Log a message object with the ERROR Level.
 void error(java.lang.String channel, java.lang.String msg)
          Log a message object with the ERROR Level.
 void error(java.lang.String channel, java.lang.String msg, RootException ex)
          Log a message object with the ERROR Level.
 void info(java.lang.String msg)
          Log a message object with the INFO Level.
 void info(java.lang.String msg, RootException ex)
          Log a message object with the INFO Level.
 void info(java.lang.String channel, java.lang.String msg)
          Log a message object with the INFO Level.
 void info(java.lang.String channel, java.lang.String msg, RootException ex)
          Log a message object with the INFO Level.
 void warn(java.lang.String msg)
          Log a message object with the WARN Level.
 void warn(java.lang.String msg, RootException ex)
          Log a message object with the WARN Level.
 void warn(java.lang.String channel, java.lang.String msg)
          Log a message object with the WARN Level.
 void warn(java.lang.String channel, java.lang.String msg, RootException ex)
          Log a message object with the WARN Level.
 

Method Detail

configure

public void configure(java.util.Properties prop)
Method configure is called at Shark start up, to configure implementation of LoggingManager.


error

public void error(java.lang.String msg)
Log a message object with the ERROR Level.

Parameters:
msg - the message to log.

error

public void error(java.lang.String msg,
                  RootException ex)
Log a message object with the ERROR Level.

Parameters:
msg - the message to log.
ex - the exception to log, including its stack trace.

error

public void error(java.lang.String channel,
                  java.lang.String msg)
Log a message object with the ERROR Level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.

error

public void error(java.lang.String channel,
                  java.lang.String msg,
                  RootException ex)
Log a message object with the ERROR Level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.
ex - the exception to log, including its stack trace.

warn

public void warn(java.lang.String msg)
Log a message object with the WARN Level.

Parameters:
msg - the message to log.

warn

public void warn(java.lang.String msg,
                 RootException ex)
Log a message object with the WARN Level.

Parameters:
msg - the message to log.
ex - the exception to log, including its stack trace.

warn

public void warn(java.lang.String channel,
                 java.lang.String msg)
Log a message object with the WARN Level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.

warn

public void warn(java.lang.String channel,
                 java.lang.String msg,
                 RootException ex)
Log a message object with the WARN Level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.
ex - the exception to log, including its stack trace.

info

public void info(java.lang.String msg)
Log a message object with the INFO Level.

Parameters:
msg - the message to log.

info

public void info(java.lang.String msg,
                 RootException ex)
Log a message object with the INFO Level.

Parameters:
msg - the message to log.
ex - the exception to log, including its stack trace.

info

public void info(java.lang.String channel,
                 java.lang.String msg)
Log a message object with the INFO Level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.

info

public void info(java.lang.String channel,
                 java.lang.String msg,
                 RootException ex)
Log a message object with the INFO Level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.
ex - the exception to log, including its stack trace.

debug

public void debug(java.lang.String msg)
Log a message object with the DEBUG level.

Parameters:
msg - the message to log.

debug

public void debug(java.lang.String msg,
                  RootException ex)
Log a message object with the DEBUG level.

Parameters:
msg - the message to log.
ex - the exception to log, including its stack trace.

debug

public void debug(java.lang.String channel,
                  java.lang.String msg)
Log a message object with the DEBUG level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.

debug

public void debug(java.lang.String channel,
                  java.lang.String msg,
                  RootException ex)
Log a message object with the DEBUG level.

Parameters:
channel - the log channel to be used for logging.
msg - the message to log.
ex - the exception to log, including its stack trace.

Snapper 1.0 API