Class SentryBootstrap.Builder

    • Method Detail

      • 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 configured SentryAppender.