public class JdkHandler extends Handler
Constructor and Description |
---|
JdkHandler(PaxLoggingService logService) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the Handler and free all associated resources.
|
void |
flush()
Flush any buffered output.
|
void |
publish(LogRecord record)
Publish a LogRecord.
|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
public JdkHandler(PaxLoggingService logService)
public void close() throws 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 Handler
SecurityException
- if a security manager exists and if
the caller does not have LoggingPermission("control").public void publish(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.
Copyright © 2019. All rights reserved.