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 voidbootstrap()Bootstrap the SLF4J root logger with a configuredSentryAppender.SentryBootstrap.BuilderwithCleanRootLogger(boolean cleanRootLogger)static SentryBootstrap.BuilderwithDsn(String dsn)SentryBootstrap.BuilderwithEnvironment(String environment)SentryBootstrap.BuilderwithRelease(String release)SentryBootstrap.BuilderwithServerName(String serverName)SentryBootstrap.BuilderwithThreshold(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.
-
-