SK.gnome.dwarf.http.log
Class HTTPFileLogger

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.StreamLogger
                  extended bySK.gnome.dwarf.log.FileLogger
                      extended bySK.gnome.dwarf.http.log.HTTPFileLogger
All Implemented Interfaces:
SK.gnome.dwarf.log.Logger, SK.gnome.dwarf.Reportable, java.lang.Runnable, SK.gnome.dwarf.Service

public class HTTPFileLogger
extends SK.gnome.dwarf.log.FileLogger

This service writes the HTTP transfer log messages to a file.

It is a regular FileLogger service except that it accepts only messages with the LOG_XFER logging level, with the time information included already in the logged message strings.


Field Summary
 
Fields inherited from class SK.gnome.dwarf.log.FileLogger
autoFlush, encoding, file
 
Fields inherited from class SK.gnome.dwarf.log.StreamLogger
dateTime, dateTimeFormat, extendedInfo, out
 
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
HTTPFileLogger(java.lang.String name)
          Creates a new HTTPFileLogger.
 
Method Summary
 void init(SK.gnome.dwarf.Server parent)
          Initializes the service.
protected  void write(long time, java.lang.String facility, SK.gnome.dwarf.log.LogLevel level, java.lang.String message, java.lang.Throwable error)
           
 
Methods inherited from class SK.gnome.dwarf.log.FileLogger
report, setAutoFlush, setEncoding, setFile, shutdown
 
Methods inherited from class SK.gnome.dwarf.log.StreamLogger
setDateTime, setDateTimeFormat, setDateTimeFormat, setExtendedInfo, wouldLog
 
Methods inherited from class SK.gnome.dwarf.log.GenericLogger
enableThread, getLastAccessed, log, log, loop, setFacilities, setLevels, setMarkInterval, setRepeatedInterval, 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

HTTPFileLogger

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

Method Detail

init

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

It initializes the superclass with the following default settings:

 setLevels("xfer");
 setDateTime(false);
 setMarkInterval(0);
 setRepeatedInterval(0);
 

Throws:
SK.gnome.dwarf.ServiceException

write

protected void write(long time,
                     java.lang.String facility,
                     SK.gnome.dwarf.log.LogLevel level,
                     java.lang.String message,
                     java.lang.Throwable error)


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