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).


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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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)