Package io.sentry.spring.boot
Class SentryLogbackInitializer
java.lang.Object
io.sentry.spring.boot.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(@NotNull org.springframework.context.ApplicationEvent event) booleansupportsEventType(@NotNull org.springframework.core.ResolvableType eventType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.event.GenericApplicationListener
supportsEventTypeMethods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId, getOrder, supportsSourceType
-
Constructor Details
-
SentryLogbackInitializer
-
-
Method Details
-
supportsEventType
public boolean supportsEventType(@NotNull @NotNull org.springframework.core.ResolvableType eventType) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.GenericApplicationListener
-
onApplicationEvent
public void onApplicationEvent(@NotNull @NotNull org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-