|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
org.ops4j.pax.logging.service.internal.JdkHandler
public class JdkHandler
Constructor Summary | |
---|---|
JdkHandler(PaxLoggingService logService)
|
Method Summary | |
---|---|
void |
close()
Close the Handler and free all associated resources. |
void |
flush()
Flush any buffered output. |
void |
publish(java.util.logging.LogRecord record)
Publish a LogRecord. |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdkHandler(PaxLoggingService logService)
Method Detail |
---|
public void close() throws java.lang.SecurityException
The close method will perform a flush and then close the Handler. After close has been called this Handler should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.
close
in class java.util.logging.Handler
java.lang.SecurityException
- if a security manager exists and if
the caller does not have LoggingPermission("control").public void flush()
flush
in class java.util.logging.Handler
public void publish(java.util.logging.LogRecord record)
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
The Handler is responsible for formatting the message, when and if necessary. The formatting should include localization.
publish
in class java.util.logging.Handler
record
- description of the log event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |