org.infoglue.cms.util.webloggers
Class IISLogger

java.lang.Object
  |
  +--org.infoglue.cms.util.webloggers.Logger
        |
        +--org.infoglue.cms.util.webloggers.IISLogger

public class IISLogger
extends Logger

The CommonLogger class implements the abstract Logger class. The resulting log will conform to the common log format).


Field Summary
protected  byte[] buffer
           
protected  int bufptr
           
protected  int bufsize
           
protected  int day
           
protected  java.io.RandomAccessFile errlog
           
protected  int hour
           
protected  java.io.RandomAccessFile log
           
protected  int month
           
protected static java.lang.String[] monthnames
           
protected static java.lang.String noUrl
           
protected  int rotateLevel
           
protected  java.io.RandomAccessFile trace
           
protected  int year
           
 
Method Summary
 java.lang.String defaultValueIfNull(java.lang.String value)
           
 java.lang.String getCurrentDate(java.lang.String pattern)
          This method returns a date as a string.
 java.lang.String getHostAddress()
           
 java.lang.String getHostName()
           
 void initialize()
          Initialize this logger for the given server.
 void logRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pagePath, long duration)
          Log the given HTTP transaction.
protected  void writeRequest(java.lang.String date, java.lang.String row)
          This method writes a request to the logfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monthnames

protected static final java.lang.String[] monthnames

noUrl

protected static java.lang.String noUrl

log

protected java.io.RandomAccessFile log

errlog

protected java.io.RandomAccessFile errlog

trace

protected java.io.RandomAccessFile trace

bufsize

protected int bufsize

bufptr

protected int bufptr

rotateLevel

protected int rotateLevel

buffer

protected byte[] buffer

year

protected int year

month

protected int month

day

protected int day

hour

protected int hour
Method Detail

logRequest

public void logRequest(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       java.lang.String pagePath,
                       long duration)
Log the given HTTP transaction. Not implemented yet!!!

Specified by:
logRequest in class Logger

initialize

public void initialize()
Initialize this logger for the given server. This method gets the server properties describe above to initialize its various log files.

Specified by:
initialize in class Logger

writeRequest

protected void writeRequest(java.lang.String date,
                            java.lang.String row)
This method writes a request to the logfile


getCurrentDate

public java.lang.String getCurrentDate(java.lang.String pattern)
This method returns a date as a string.


getHostAddress

public java.lang.String getHostAddress()

getHostName

public java.lang.String getHostName()

defaultValueIfNull

public java.lang.String defaultValueIfNull(java.lang.String value)


Copyright © 2003 InfoGlue.org All Rights Reserved.