nl.justobjects.pushlet.util
Class Log4jLogger

java.lang.Object
  extended by nl.justobjects.pushlet.util.Log4jLogger
All Implemented Interfaces:
ConfigDefs, PushletLogger

public class Log4jLogger
extends java.lang.Object
implements PushletLogger

Logger to use Log4j for logging.

Logs using Log4j. This class will require a log4j library in the classpath of the Pushlet.

Version:
$Id: Log4jLogger.java,v 1.1 2007/12/07 12:57:40 justb Exp $
Author:
Uli Romahn

Field Summary
private  Logger logger
          Level intialized with default.
 
Fields inherited from interface nl.justobjects.pushlet.core.ConfigDefs
CONTROLLER_CLASS, DISPATCHER_CLASS, LISTEN_FORCE_PULL_AGENTS, LISTEN_FORCE_PULL_ALL, LOG_LEVEL, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_TRACE, LOG_LEVEL_WARN, LOGGER_CLASS, POLL_REFRESH_TIMEOUT_MILLIS, POLL_REFRESH_WAIT_MAX_MILLIS, POLL_REFRESH_WAIT_MIN_MILLIS, PULL_REFRESH_TIMEOUT_MILLIS, PULL_REFRESH_WAIT_MAX_MILLIS, PULL_REFRESH_WAIT_MIN_MILLIS, QUEUE_READ_TIMEOUT_MILLIS, QUEUE_SIZE, QUEUE_WRITE_TIMEOUT_MILLIS, SESSION_CLASS, SESSION_ID_GENERATION, SESSION_ID_GENERATION_RANDOMSTRING, SESSION_ID_GENERATION_UUID, SESSION_ID_SIZE, SESSION_MANAGER_CLASS, SESSION_TIMEOUT_MINS, SOURCES_ACTIVATE, SUBSCRIBER_CLASS, SUBSCRIPTION_CLASS
 
Constructor Summary
Log4jLogger()
           
 
Method Summary
 void debug(java.lang.String aMessage)
          Log message for debug level.
 void error(java.lang.String aMessage)
          Log message for error level.
 void error(java.lang.String aMessage, java.lang.Throwable aThrowable)
          Log message (error level with exception).
 void fatal(java.lang.String aMessage)
          Log message for fatal level.
 void fatal(java.lang.String aMessage, java.lang.Throwable aThrowable)
          Log message (fatal level with exception).
 void info(java.lang.String aMessage)
          Log message for info level.
 void init()
          Method allowing to initialize our logger
 void setLevel(int aLevel)
          Set log level
 void trace(java.lang.String aMessage)
          Log message for trace level.
 void warn(java.lang.String aMessage)
          Log message for warning level.
 void warn(java.lang.String aMessage, java.lang.Throwable aThrowable)
          Log message for warning level with exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private Logger logger
Level intialized with default.

Constructor Detail

Log4jLogger

public Log4jLogger()
Method Detail

init

public void init()
Description copied from interface: PushletLogger
Method allowing to initialize our logger

Specified by:
init in interface PushletLogger

debug

public void debug(java.lang.String aMessage)
Description copied from interface: PushletLogger
Log message for debug level.

Specified by:
debug in interface PushletLogger
Parameters:
aMessage - the message to be logged

error

public void error(java.lang.String aMessage)
Description copied from interface: PushletLogger
Log message for error level.

Specified by:
error in interface PushletLogger
Parameters:
aMessage - the message to be logged

error

public void error(java.lang.String aMessage,
                  java.lang.Throwable aThrowable)
Description copied from interface: PushletLogger
Log message (error level with exception).

Specified by:
error in interface PushletLogger
Parameters:
aMessage - the message to be logged
aThrowable - the exception

fatal

public void fatal(java.lang.String aMessage)
Description copied from interface: PushletLogger
Log message for fatal level.

Specified by:
fatal in interface PushletLogger
Parameters:
aMessage - the message to be logged

fatal

public void fatal(java.lang.String aMessage,
                  java.lang.Throwable aThrowable)
Description copied from interface: PushletLogger
Log message (fatal level with exception).

Specified by:
fatal in interface PushletLogger
Parameters:
aMessage - the message to be logged
aThrowable - the exception

info

public void info(java.lang.String aMessage)
Description copied from interface: PushletLogger
Log message for info level.

Specified by:
info in interface PushletLogger
Parameters:
aMessage - the message to be logged

trace

public void trace(java.lang.String aMessage)
Description copied from interface: PushletLogger
Log message for trace level.

Specified by:
trace in interface PushletLogger
Parameters:
aMessage - the message to be logged

warn

public void warn(java.lang.String aMessage)
Description copied from interface: PushletLogger
Log message for warning level.

Specified by:
warn in interface PushletLogger
Parameters:
aMessage - the message to be logged

warn

public void warn(java.lang.String aMessage,
                 java.lang.Throwable aThrowable)
Description copied from interface: PushletLogger
Log message for warning level with exception.

Specified by:
warn in interface PushletLogger
Parameters:
aMessage - the message to be logged
aThrowable - the exception

setLevel

public void setLevel(int aLevel)
Description copied from interface: PushletLogger
Set log level

Specified by:
setLevel in interface PushletLogger
Parameters:
aLevel - a valid Level from ConfigDefs


Copyright 2000-2003 - Just Objects B.V.