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, wait
securityEvent, securityEvent, shutdownLogging
public JavaLoggerService(AppContext conn)
public void cleanup()
AppContextCleanup
AppContext
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 AppContextCleanup
public java.lang.Class<? super LoggerService> getType()
AppContextService
getType
in interface AppContextService<LoggerService>
public Logger getLogger(java.lang.String name)
getLogger
in interface LoggerService
public Logger getLogger(java.lang.Class c)
getLogger
in interface LoggerService
public void initialiseLogging()
LoggerService
initialiseLogging
in interface LoggerService
public AppContext getContext()
getContext
in interface Contexed