|
||||||||||
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.NullLogger SK.gnome.dwarf.http.log.JSPLogger
Logging proxy service for the Jasper package.
This service just creates and initializes a custom log handler for the Jasper
package. Since it extends the NullLogger
, no actual logging is done by this
class, but the log handler simply redirects the log messages generated by the Jasper
to the inherited log methods.
New "jsp" application subsystem identifier is used for the Jasper package. The JSP-related debugging messages are therefore forwarded only if a call to SK.gnome.dwarf.log.Log.getDebug("jsp") returns true.
Field Summary |
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 | |
JSPLogger(java.lang.String name)
Creates a new JSPLogger. |
Method Summary | |
void |
init(SK.gnome.dwarf.Server parent)
Initializes the service. |
Methods inherited from class SK.gnome.dwarf.log.NullLogger |
wouldLog, write |
Methods inherited from class SK.gnome.dwarf.log.GenericLogger |
enableThread, getLastAccessed, log, log, loop, setFacilities, setLevels, setMarkInterval, setRepeatedInterval, shutdown, 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 JSPLogger(java.lang.String name)
Method Detail |
public void init(SK.gnome.dwarf.Server parent) throws SK.gnome.dwarf.ServiceException
It installs a custom log handler for the Jasper package. The new handler is used to route the messages generated by the Jasper application subsystem to the service's own log(LogLevel, String) and log(LogLevel, String, Throwable) methods.
The logging level of the custom handler is adjusted according to this logger's set of accepted logging levels.
SK.gnome.dwarf.ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |