SK.gnome.dwarf.http.log
Class JSPLogger

java.lang.Object
  extended bySK.gnome.dwarf.GenericService
      extended bySK.gnome.dwarf.thread.ThreadService
          extended bySK.gnome.dwarf.log.GenericLogger
              extended bySK.gnome.dwarf.log.NullLogger
                  extended bySK.gnome.dwarf.http.log.JSPLogger
All Implemented Interfaces:
SK.gnome.dwarf.log.Logger, java.lang.Runnable, SK.gnome.dwarf.Service

public class JSPLogger
extends SK.gnome.dwarf.log.NullLogger

Logging proxy service for the Jasper package.

This service just creates and initializes a custom log handler for the Jasper package. Since it extends the NullLogger, no actual logging is done by this class, but the log handler simply redirects the log messages generated by the Jasper to the inherited log methods.

New "jsp" application subsystem identifier is used for the Jasper package. The JSP-related debugging messages are therefore forwarded only if a call to SK.gnome.dwarf.log.Log.getDebug("jsp") returns true.


Field Summary
 
Fields inherited from class SK.gnome.dwarf.log.GenericLogger
facilities, levels, lock, LOG_FACILITY_ALL
 
Fields inherited from class SK.gnome.dwarf.thread.ThreadService
daemon, thread
 
Fields inherited from class SK.gnome.dwarf.GenericService
initParameters, parent
 
Fields inherited from interface SK.gnome.dwarf.Service
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED
 
Constructor Summary
JSPLogger(java.lang.String name)
          Creates a new JSPLogger.
 
Method Summary
 void init(SK.gnome.dwarf.Server parent)
          Initializes the service.
 
Methods inherited from class SK.gnome.dwarf.log.NullLogger
wouldLog, write
 
Methods inherited from class SK.gnome.dwarf.log.GenericLogger
enableThread, getLastAccessed, log, log, loop, setFacilities, setLevels, setMarkInterval, setRepeatedInterval, shutdown, start
 
Methods inherited from class SK.gnome.dwarf.thread.ThreadService
finish, run, setDaemon, stop
 
Methods inherited from class SK.gnome.dwarf.GenericService
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSPLogger

public JSPLogger(java.lang.String name)
Creates a new JSPLogger.

Method Detail

init

public void init(SK.gnome.dwarf.Server parent)
          throws SK.gnome.dwarf.ServiceException
Initializes the service.

It installs a custom log handler for the Jasper package. The new handler is used to route the messages generated by the Jasper application subsystem to the service's own log(LogLevel, String) and log(LogLevel, String, Throwable) methods.

The logging level of the custom handler is adjusted according to this logger's set of accepted logging levels.

Throws:
SK.gnome.dwarf.ServiceException


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.