Class SentryLogbackInitializer

java.lang.Object
io.sentry.spring.boot.jakarta.SentryLogbackInitializer
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.context.event.GenericApplicationListener, org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered

public class SentryLogbackInitializer extends Object implements org.springframework.context.event.GenericApplicationListener
Registers SentryAppender after Spring context gets refreshed.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    SentryLogbackInitializer(@NotNull SentryProperties sentryProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onApplicationEvent(@NotNull org.springframework.context.ApplicationEvent event)
     
    boolean
    supportsEventType(@NotNull org.springframework.core.ResolvableType eventType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution

    Methods inherited from interface org.springframework.context.event.GenericApplicationListener

    supportsEventType

    Methods inherited from interface org.springframework.context.event.SmartApplicationListener

    getListenerId, getOrder, supportsSourceType
  • Constructor Details

    • SentryLogbackInitializer

      public SentryLogbackInitializer(@NotNull @NotNull SentryProperties sentryProperties)
  • Method Details

    • supportsEventType

      public boolean supportsEventType(@NotNull @NotNull org.springframework.core.ResolvableType eventType)
      Specified by:
      supportsEventType in interface org.springframework.context.event.GenericApplicationListener
    • onApplicationEvent

      public void onApplicationEvent(@NotNull @NotNull org.springframework.context.ApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>