Class SentryBootstrap
- java.lang.Object
-
- org.dhatim.dropwizard.sentry.logging.SentryBootstrap
-
public final class SentryBootstrap extends Object
A class adding a configuredSentryAppenderto the root logger.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSentryBootstrap.Builder
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbootstrap(String dsn)Bootstrap the SLF4J root logger with a configuredSentryAppender.static voidbootstrap(String dsn, boolean cleanRootLogger)Bootstrap the SLF4J root logger with a configuredSentryAppender.static voidbootstrap(String dsn, String environment, String release, boolean cleanRootLogger)Bootstrap the SLF4J root logger with a configuredSentryAppender.static voidbootstrap(String dsn, String environment, String release, String serverName, boolean cleanRootLogger)Bootstrap the SLF4J root logger with a configuredSentryAppender.static voidbootstrap(String dsn, String threshold, String environment, String release, String serverName, boolean cleanRootLogger)Bootstrap the SLF4J root logger with a configuredSentryAppender.
-
-
-
Method Detail
-
bootstrap
public static void bootstrap(String dsn)
Bootstrap the SLF4J root logger with a configuredSentryAppender.- Parameters:
dsn- The DSN (Data Source Name) for your project
-
bootstrap
public static void bootstrap(String dsn, boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configuredSentryAppender.- Parameters:
dsn- The DSN (Data Source Name) for your projectcleanRootLogger- If true, detach and stop all other appenders from the root logger
-
bootstrap
public static void bootstrap(String dsn, String environment, String release, boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configuredSentryAppender.- Parameters:
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 logger
-
bootstrap
public static void bootstrap(String dsn, String environment, String release, String serverName, boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configuredSentryAppender.- Parameters:
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 logger
-
bootstrap
public static void bootstrap(String dsn, String threshold, String environment, String release, String serverName, boolean cleanRootLogger)
Bootstrap the SLF4J root logger with a configuredSentryAppender.- Parameters:
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 logger
-
-