public final class SentryBootstrap extends Object
SentryAppender to the root logger.| Modifier and Type | Class and Description |
|---|---|
static class |
SentryBootstrap.Builder |
| Modifier and Type | Method and Description |
|---|---|
static void |
bootstrap(String dsn)
Bootstrap the SLF4J root logger with a configured
SentryAppender. |
static void |
bootstrap(String dsn,
boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configured
SentryAppender. |
static void |
bootstrap(String dsn,
String environment,
String release,
boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configured
SentryAppender. |
static void |
bootstrap(String dsn,
String environment,
String release,
String serverName,
boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configured
SentryAppender. |
static void |
bootstrap(String dsn,
String threshold,
String environment,
String release,
String serverName,
boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configured
SentryAppender. |
public static void bootstrap(String dsn)
SentryAppender.dsn - The DSN (Data Source Name) for your projectpublic static void bootstrap(String dsn, boolean cleanRootLogger)
SentryAppender.dsn - The DSN (Data Source Name) for your projectcleanRootLogger - If true, detach and stop all other appenders from
the root loggerpublic static void bootstrap(String dsn, String environment, String release, boolean cleanRootLogger)
SentryAppender.dsn - The DSN (Data Source Name) for your projectenvironment - The environment name to pass to Sentryrelease - The release name to pass to SentrycleanRootLogger - If true, detach and stop all other appenders from
the root loggerpublic static void bootstrap(String dsn, String environment, String release, String serverName, boolean cleanRootLogger)
SentryAppender.dsn - The DSN (Data Source Name) for your projectenvironment - The environment name to pass to Sentryrelease - The release name to pass to SentryserverName - The server name to pass to SentrycleanRootLogger - If true, detach and stop all other appenders from
the root loggerpublic static void bootstrap(String dsn, String threshold, String environment, String release, String serverName, boolean cleanRootLogger)
SentryAppender.dsn - The DSN (Data Source Name) for your projectthreshold - log events thresholdenvironment - The environment name to pass to Sentryrelease - The release name to pass to SentryserverName - The server name to pass to SentrycleanRootLogger - If true, detach and stop all other appenders from
the root loggerCopyright © 2022. All rights reserved.