public class JdkHandler extends Handler
JUL Handler that bridges log records to Pax Logging loggers.
Even if SimpleFormatter is used, we only call its
Formatter.formatMessage(LogRecord) which only uses
MessageFormat.format(String, Object...) method on log record's message.
It doesn't do anything with remaining fields of LogRecord.
Since the backport of TLSv1.3 in java (JDK-8248721) the logic of TLS debug traces has been changed.
The new TLS debug logger uses a configured JUL logger when you define the system property "javax.net.debug"
as empty. The TLS log records contain additional string parameters. They are without a format parameter in
the log message. The JdkHandler appends them to the end of the TLS log message.
The JdkHandler has the following logging modes for the TLS log records:
| Constructor and Description |
|---|
JdkHandler(PaxLoggingManager loggingManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
Formatter |
getFormatter() |
void |
publish(LogRecord record)
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
getEncoding, getErrorManager, getFilter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevelpublic JdkHandler(PaxLoggingManager loggingManager)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void close()
throws SecurityException
close in class HandlerSecurityExceptionpublic Formatter getFormatter()
getFormatter in class HandlerCopyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.