Package io.sentry.spring.boot.jakarta
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
-
Method Details
-
supportsEventType
public boolean supportsEventType(@NotNull @NotNull org.springframework.core.ResolvableType eventType) - Specified by:
supportsEventType
in interfaceorg.springframework.context.event.GenericApplicationListener
-
onApplicationEvent
public void onApplicationEvent(@NotNull @NotNull org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-