public static class SentryBootstrap.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrap()
Bootstrap the SLF4J root logger with a configured
SentryAppender. |
SentryBootstrap.Builder |
withCleanRootLogger(boolean cleanRootLogger) |
static SentryBootstrap.Builder |
withDsn(String dsn) |
SentryBootstrap.Builder |
withEnvironment(String environment) |
SentryBootstrap.Builder |
withRelease(String release) |
SentryBootstrap.Builder |
withServerName(String serverName) |
SentryBootstrap.Builder |
withThreshold(String threshold) |
public static SentryBootstrap.Builder withDsn(String dsn)
public SentryBootstrap.Builder withThreshold(String threshold)
threshold - log events thresholdpublic SentryBootstrap.Builder withEnvironment(String environment)
environment - The environment name to pass to Sentrypublic SentryBootstrap.Builder withRelease(String release)
release - The release name to pass to Sentrypublic SentryBootstrap.Builder withServerName(String serverName)
serverName - The server name to pass to Sentrypublic SentryBootstrap.Builder withCleanRootLogger(boolean cleanRootLogger)
cleanRootLogger - If true, detach and stop all other appenders from
the root loggerpublic void bootstrap()
SentryAppender.Copyright © 2022. All rights reserved.