public class BufferLoggerService extends java.lang.Object implements LoggerService, Contexed
SECURITY_LOG
Constructor and Description |
---|
BufferLoggerService(AppContext c) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
AppContext is being closed. |
java.lang.StringBuffer |
getBuffer() |
AppContext |
getContext() |
Logger |
getLogger(java.lang.Class c) |
Logger |
getLogger(java.lang.String name) |
int |
getMaxLength() |
java.lang.Class<? super LoggerService> |
getType()
Returns the type of service the class should be registered under.
|
void |
setMaxLength(int max_length) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialiseLogging, securityEvent, securityEvent, shutdownLogging
public BufferLoggerService(AppContext c)
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 AppContext getContext()
getContext
in interface Contexed
public java.lang.StringBuffer getBuffer()
public int getMaxLength()
public void setMaxLength(int max_length)
max_length
- the max_length to set