|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.slide.impl.SlideLoggerAdapter
public class SlideLoggerAdapter
The class represent an adapter for the logger for jakarta slide
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 |
---|
public SlideLoggerAdapter(Logger logger)
Method Detail |
---|
public void log(Object data, Throwable t, String channel, int level)
log
in interface org.apache.slide.util.logger.Logger
public void log(Object data, String channel, int level)
log
in interface org.apache.slide.util.logger.Logger
data
- The object to log.channel
- The channel name used for logging.level
- The level used for logging.public void log(Object data, int level)
log
in interface org.apache.slide.util.logger.Logger
data
- The object to log.level
- The level used for logging.public void log(Object data)
log
in interface org.apache.slide.util.logger.Logger
data
- The object to log.public void setLoggerLevel(int level)
setLoggerLevel
in interface org.apache.slide.util.logger.Logger
level
- the logger levelpublic void setLoggerLevel(String channel, int level)
setLoggerLevel
in interface org.apache.slide.util.logger.Logger
channel
- level
- the logger levelpublic int getLoggerLevel()
getLoggerLevel
in interface org.apache.slide.util.logger.Logger
public int getLoggerLevel(String channel)
getLoggerLevel
in interface org.apache.slide.util.logger.Logger
channel
- the channel
public boolean isEnabled(String channel, int level)
isEnabled
in interface org.apache.slide.util.logger.Logger
channel
- The channel specificationlevel
- The level specificationpublic boolean isEnabled(int level)
isEnabled
in interface org.apache.slide.util.logger.Logger
level
- The level specification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |