|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.deliver.util.webloggers.Logger
org.infoglue.deliver.util.webloggers.IISLogger
public class IISLogger
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 |
|---|
protected static final java.lang.String[] monthnames
protected static java.lang.String noUrl
protected java.io.RandomAccessFile log
protected java.io.RandomAccessFile errlog
protected java.io.RandomAccessFile trace
protected int bufsize
protected int bufptr
protected int rotateLevel
protected byte[] buffer
protected int year
protected int month
protected int day
protected int hour
| Method Detail |
|---|
public void logRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String pagePath,
long duration)
logRequest in class Loggerpublic void initialize()
initialize in class Loggerserver - The server to which thiss logger should initialize.
protected void writeRequest(java.lang.String date,
java.lang.String row)
public java.lang.String getCurrentDate(java.lang.String pattern)
public java.lang.String getHostAddress()
public java.lang.String getHostName()
public java.lang.String defaultValueIfNull(java.lang.String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||