public class JavaLoggerService extends java.lang.Object implements Contexed, LoggerService
LoggerService that maps onto the standard java logging api.
Note that when running under tomcat this api is provided by a tomcat specific
implementation to allow per-application configuration so consult the tomcat documentation for
configuration instructions.SECURITY_LOG| Constructor and Description |
|---|
JavaLoggerService(AppContext conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
AppContext is being closed. |
AppContext |
getContext() |
Logger |
getLogger(java.lang.Class c) |
Logger |
getLogger(java.lang.String name) |
java.lang.Class<? super LoggerService> |
getType()
Returns the type of service the class should be registered under.
|
void |
initialiseLogging()
Initialise the logging system.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsecurityEvent, securityEvent, shutdownLoggingpublic JavaLoggerService(AppContext conn)
public void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic java.lang.Class<? super LoggerService> getType()
AppContextServicegetType in interface AppContextService<LoggerService>public Logger getLogger(java.lang.String name)
getLogger in interface LoggerServicepublic Logger getLogger(java.lang.Class c)
getLogger in interface LoggerServicepublic void initialiseLogging()
LoggerServiceinitialiseLogging in interface LoggerServicepublic AppContext getContext()
getContext in interface Contexed