org.apache.cocoon.components.slide.impl
Class SlideLoggerAdapter

java.lang.Object
  extended by org.apache.cocoon.components.slide.impl.SlideLoggerAdapter
All Implemented Interfaces:
org.apache.slide.util.logger.Logger

public class SlideLoggerAdapter
extends Object
implements org.apache.slide.util.logger.Logger

The class represent an adapter for the logger for jakarta slide

Version:
CVS $Id: SlideLoggerAdapter.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.slide.util.logger.Logger
CRITICAL, DEBUG, DEFAULT_CHANNEL, EMERGENCY, ERROR, INFO, WARNING
 
Constructor Summary
SlideLoggerAdapter(Logger logger)
           
 
Method Summary
 int getLoggerLevel()
          Get the logger level for the default channel
 int getLoggerLevel(String channel)
          Get the logger level for the specified channel
 boolean isEnabled(int level)
          Check if the default channel with the specified level is enabled for logging.
 boolean isEnabled(String channel, int level)
          Check if the channel with the specified level is enabled for logging.
 void log(Object data)
          Log an object.
 void log(Object data, int level)
          Log an object with the specified level.
 void log(Object data, String channel, int level)
          Log an object thru the specified channel and with the specified level.
 void log(Object data, Throwable t, String channel, int level)
           
 void setLoggerLevel(int level)
          Set the logger level for the default channel
 void setLoggerLevel(String channel, int level)
          Set the logger level for the specified channel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideLoggerAdapter

public SlideLoggerAdapter(Logger logger)
Method Detail

log

public void log(Object data,
                Throwable t,
                String channel,
                int level)
Specified by:
log in interface org.apache.slide.util.logger.Logger

log

public void log(Object data,
                String channel,
                int level)
Log an object thru the specified channel and with the specified level.

Specified by:
log in interface org.apache.slide.util.logger.Logger
Parameters:
data - The object to log.
channel - The channel name used for logging.
level - The level used for logging.

log

public void log(Object data,
                int level)
Log an object with the specified level.

Specified by:
log in interface org.apache.slide.util.logger.Logger
Parameters:
data - The object to log.
level - The level used for logging.

log

public void log(Object data)
Log an object.

Specified by:
log in interface org.apache.slide.util.logger.Logger
Parameters:
data - The object to log.

setLoggerLevel

public void setLoggerLevel(int level)
Set the logger level for the default channel

Specified by:
setLoggerLevel in interface org.apache.slide.util.logger.Logger
Parameters:
level - the logger level

setLoggerLevel

public void setLoggerLevel(String channel,
                           int level)
Set the logger level for the specified channel

Specified by:
setLoggerLevel in interface org.apache.slide.util.logger.Logger
Parameters:
channel -
level - the logger level

getLoggerLevel

public int getLoggerLevel()
Get the logger level for the default channel

Specified by:
getLoggerLevel in interface org.apache.slide.util.logger.Logger
Returns:
logger level

getLoggerLevel

public int getLoggerLevel(String channel)
Get the logger level for the specified channel

Specified by:
getLoggerLevel in interface org.apache.slide.util.logger.Logger
Parameters:
channel - the channel
Returns:
logger level

isEnabled

public boolean isEnabled(String channel,
                         int level)
Check if the channel with the specified level is enabled for logging.

Specified by:
isEnabled in interface org.apache.slide.util.logger.Logger
Parameters:
channel - The channel specification
level - The level specification

isEnabled

public boolean isEnabled(int level)
Check if the default channel with the specified level is enabled for logging.

Specified by:
isEnabled in interface org.apache.slide.util.logger.Logger
Parameters:
level - The level specification


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.