Snapper 3.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

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

Parameters:
cus - an instance of CallbackUtilities used to get properties for configuring logging in Shark.

error

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

Parameters:
msg - the message to log.

error

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

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

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

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

Parameters:
msg - the message to log.

warn

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

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

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

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

Parameters:
msg - the message to log.

info

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

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

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

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

Parameters:
msg - the message to log.

debug

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

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

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 3.0 API