public static final class UncaughtExceptionHandlers.LoggingSystemExitBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
Thread.UncaughtExceptionHandler |
build() |
UncaughtExceptionHandlers.LoggingSystemExitBuilder |
cleanRootLogger(boolean cleanRootLogger)
Sets whether all existing appenders should be detached from the root logger.
|
UncaughtExceptionHandlers.LoggingSystemExitBuilder |
logToStderr(boolean logToStderr)
Sets whether the stacktrace of the uncaught exception should be printed to
System.err. |
UncaughtExceptionHandlers.LoggingSystemExitBuilder |
port(int port)
Sets the port of the Graylog server.
|
public UncaughtExceptionHandlers.LoggingSystemExitBuilder port(int port)
port - The port of the Graylog server.UncaughtExceptionHandlers.LoggingSystemExitBuilder instancepublic UncaughtExceptionHandlers.LoggingSystemExitBuilder cleanRootLogger(boolean cleanRootLogger)
cleanRootLogger - If true, detach and stop all other appenders from the root loggerUncaughtExceptionHandlers.LoggingSystemExitBuilder instancepublic UncaughtExceptionHandlers.LoggingSystemExitBuilder logToStderr(boolean logToStderr)
System.err.logToStderr - If true, print the stacktrace to System.errUncaughtExceptionHandlers.LoggingSystemExitBuilder instancepublic Thread.UncaughtExceptionHandler build()
Copyright © 2016. All rights reserved.