Class LogbackSentryFactory

  • All Implemented Interfaces:
    io.bootique.config.PolymorphicConfiguration

    public class LogbackSentryFactory
    extends AppenderFactory
    TODO: Add child factory for some advanced configuration like buffers, async and exception handler https://docs.sentry.io/clients/java/config/#in-application-stack-frames
    • Constructor Detail

      • LogbackSentryFactory

        public LogbackSentryFactory()
    • Method Detail

      • createAppender

        public ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> createAppender​(ch.qos.logback.classic.LoggerContext context,
                                                                                                     String defaultLogFormat)
        Specified by:
        createAppender in class AppenderFactory
      • getDsn

        public String getDsn()
      • setDsn

        public void setDsn​(String dsn)
      • getServerName

        public String getServerName()
      • setServerName

        public void setServerName​(String serverName)
      • getEnvironment

        public String getEnvironment()
      • setEnvironment

        public void setEnvironment​(String environment)
      • getRelease

        public String getRelease()
      • setRelease

        public void setRelease​(String release)
      • getMinLevel

        public String getMinLevel()
      • getDistribution

        public String getDistribution()
      • setDistribution

        public void setDistribution​(String distribution)
      • getApplicationPackages

        public List<String> getApplicationPackages()
      • setApplicationPackages

        public void setApplicationPackages​(List<String> applicationPackages)
      • isCommonFramesEnabled

        @Deprecated
        public boolean isCommonFramesEnabled()
        Deprecated.
        as it doesn't have corresponding config parameter in a new version of the Sentry API
      • setCommonFramesEnabled

        @Deprecated
        public void setCommonFramesEnabled​(boolean commonFramesEnabled)
        Deprecated.
        as it doesn't have corresponding config parameter in a new version of the Sentry API
      • setMinLevel

        public void setMinLevel​(String minLevel)