nl.justobjects.pushlet.util
Class Log

java.lang.Object
  extended by nl.justobjects.pushlet.util.Log
All Implemented Interfaces:
ConfigDefs

public class Log
extends java.lang.Object
implements ConfigDefs

Logging wrapper.

Provides a hook to direct logging to your own logging library. Override the DefaultLogger class by setting "logger.class" in pushlet.properties to your own logger to integrate your own logging library.

Version:
$Id: Log.java,v 1.5 2007/12/07 12:57:40 justb Exp $
Author:
Just van den Broecke

Field Summary
private static PushletLogger logger
          Init with default to have at least some logging.
 
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
Log()
           
 
Method Summary
static void debug(java.lang.String aMessage)
          Log message for debug level.
static void error(java.lang.String aMessage)
          Log message for error level.
static void error(java.lang.String aMessage, java.lang.Throwable aThrowable)
          Log message (error level with exception).
static void fatal(java.lang.String aMessage)
          Log message for fatal level.
static void fatal(java.lang.String aMessage, java.lang.Throwable aThrowable)
          Log message (fatal level with exception).
static void info(java.lang.String aMessage)
          Log message for info level.
static void init()
          General purpose initialization.
static void setLevel(int aLevel)
          Set log level
static void trace(java.lang.String aMessage)
          Log message for trace level.
static void warn(java.lang.String aMessage)
          Log message for warning level.
static 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 static PushletLogger logger
Init with default to have at least some logging.

Constructor Detail

Log

public Log()
Method Detail

init

public static void init()
General purpose initialization.


trace

public static void trace(java.lang.String aMessage)
Log message for trace level.

Parameters:
aMessage - the message to be logged

debug

public static void debug(java.lang.String aMessage)
Log message for debug level.

Parameters:
aMessage - the message to be logged

info

public static void info(java.lang.String aMessage)
Log message for info level.

Parameters:
aMessage - the message to be logged

warn

public static void warn(java.lang.String aMessage)
Log message for warning level.

Parameters:
aMessage - the message to be logged

warn

public static void warn(java.lang.String aMessage,
                        java.lang.Throwable aThrowable)
Log message for warning level with exception.

Parameters:
aMessage - the message to be logged
aThrowable - the exception

error

public static void error(java.lang.String aMessage)
Log message for error level.

Parameters:
aMessage - the message to be logged

error

public static void error(java.lang.String aMessage,
                         java.lang.Throwable aThrowable)
Log message (error level with exception).

Parameters:
aMessage - the message to be logged
aThrowable - the exception

fatal

public static void fatal(java.lang.String aMessage)
Log message for fatal level.

Parameters:
aMessage - the message to be logged

fatal

public static void fatal(java.lang.String aMessage,
                         java.lang.Throwable aThrowable)
Log message (fatal level with exception).

Parameters:
aMessage - the message to be logged
aThrowable - the exception

setLevel

public static void setLevel(int aLevel)
Set log level

Parameters:
aLevel - the message to be logged


Copyright 2000-2003 - Just Objects B.V.