|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.GenericService SK.gnome.dwarf.thread.ThreadService SK.gnome.dwarf.log.GenericLogger SK.gnome.dwarf.log.StreamLogger SK.gnome.dwarf.log.FileLogger SK.gnome.dwarf.http.log.HTTPFileLogger
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 |
public HTTPFileLogger(java.lang.String name)
Method Detail |
public void init(SK.gnome.dwarf.Server parent) throws SK.gnome.dwarf.ServiceException
It initializes the superclass with the following default settings:
setLevels("xfer"); setDateTime(false); setMarkInterval(0); setRepeatedInterval(0);
SK.gnome.dwarf.ServiceException
protected void write(long time, java.lang.String facility, SK.gnome.dwarf.log.LogLevel level, java.lang.String message, java.lang.Throwable error)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |