Package io.bootique.logback.sentry
Class LogbackSentryFactory
- java.lang.Object
-
- io.bootique.logback.appender.AppenderFactory
-
- io.bootique.logback.sentry.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 Summary
Constructors Constructor Description LogbackSentryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>createAppender(ch.qos.logback.classic.LoggerContext context, String defaultLogFormat)List<String>getApplicationPackages()StringgetDistribution()StringgetDsn()StringgetEnvironment()Map<String,String>getExtra()StringgetMinLevel()StringgetRelease()StringgetServerName()Map<String,String>getTags()booleanisCommonFramesEnabled()Deprecated.as it doesn't have corresponding config parameter in a new version of the Sentry APIvoidsetApplicationPackages(List<String> applicationPackages)voidsetCommonFramesEnabled(boolean commonFramesEnabled)Deprecated.as it doesn't have corresponding config parameter in a new version of the Sentry APIvoidsetDistribution(String distribution)voidsetDsn(String dsn)voidsetEnvironment(String environment)voidsetExtra(Map<String,String> extra)voidsetMinLevel(String minLevel)voidsetRelease(String release)voidsetServerName(String serverName)voidsetTags(Map<String,String> tags)-
Methods inherited from class io.bootique.logback.appender.AppenderFactory
asAsync, asAsync, createFilters, createLayout, getFilters, getLayout, getLogFormat, getName, setFilters, setLayout, setLogFormat, setName
-
-
-
-
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:
createAppenderin classAppenderFactory
-
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)
-
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)
-
-