Class SentryBootstrap.Builder
- java.lang.Object
-
- org.dhatim.dropwizard.sentry.logging.SentryBootstrap.Builder
-
- Enclosing class:
- SentryBootstrap
public static class SentryBootstrap.Builder extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bootstrap()
Bootstrap the SLF4J root logger with a configuredSentryAppender
.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)
-
-
-
Method Detail
-
withDsn
public static SentryBootstrap.Builder withDsn(String dsn)
-
withThreshold
public SentryBootstrap.Builder withThreshold(String threshold)
- Parameters:
threshold
- log events threshold- Returns:
- this builder
-
withEnvironment
public SentryBootstrap.Builder withEnvironment(String environment)
- Parameters:
environment
- The environment name to pass to Sentry- Returns:
- this builder
-
withRelease
public SentryBootstrap.Builder withRelease(String release)
- Parameters:
release
- The release name to pass to Sentry- Returns:
- this builder
-
withServerName
public SentryBootstrap.Builder withServerName(String serverName)
- Parameters:
serverName
- The server name to pass to Sentry- Returns:
- this builder
-
withCleanRootLogger
public SentryBootstrap.Builder withCleanRootLogger(boolean cleanRootLogger)
- Parameters:
cleanRootLogger
- If true, detach and stop all other appenders from the root logger- Returns:
- this builder
-
bootstrap
public void bootstrap()
Bootstrap the SLF4J root logger with a configuredSentryAppender
.
-
-