Class SubscriptionDebugLogInterceptor
java.lang.Object
ca.uhn.fhir.jpa.subscription.util.SubscriptionDebugLogInterceptor
This interceptor can be used for troubleshooting subscription processing. It provides very
detailed logging about the subscription processing pipeline.
This interceptor logs each step in the processing pipeline with a
different event code, using the event codes itemized in
SubscriptionDebugLogInterceptor.EventCodeEnum
. By default these are each placed in a logger with
a different name (e.g. ca.uhn.fhir.jpa.subscription.util.SubscriptionDebugLogInterceptor.SUBS20
in order to facilitate fine-grained logging controls where some codes are omitted and
some are not.
A custom log factory can also be passed in, in which case the logging creation may use another strategy.
- Since:
- 3.7.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConstructor that logs at INFO level to the loggerca.uhn.fhir.jpa.subscription.util.SubscriptionDebugLogInterceptor
SubscriptionDebugLogInterceptor
(Function<SubscriptionDebugLogInterceptor.EventCodeEnum, org.slf4j.Logger> theLogFactory, org.slf4j.event.Level theLevel) Constructor using a specific logger -
Method Summary
Modifier and TypeMethodDescriptionprotected void
log
(SubscriptionDebugLogInterceptor.EventCodeEnum theEventCode, String theMessage, Object... theArguments) void
step10_resourceModified
(ResourceModifiedMessage theMessage) void
step20_beforeChecked
(ResourceModifiedMessage theMessage) void
step30_subscriptionMatched
(ResourceDeliveryMessage theMessage, InMemoryMatchResult theResult) void
step35_subscriptionNotMatched
(ResourceModifiedMessage theMessage) void
step40_beforeDelivery
(ResourceDeliveryMessage theMessage) void
step45_deliveryFailed
(ResourceDeliveryMessage theMessage, Exception theFailure) void
step50_afterDelivery
(ResourceDeliveryMessage theMessage)
-
Constructor Details
-
SubscriptionDebugLogInterceptor
public SubscriptionDebugLogInterceptor()Constructor that logs at INFO level to the loggerca.uhn.fhir.jpa.subscription.util.SubscriptionDebugLogInterceptor
-
SubscriptionDebugLogInterceptor
public SubscriptionDebugLogInterceptor(Function<SubscriptionDebugLogInterceptor.EventCodeEnum, org.slf4j.Logger> theLogFactory, org.slf4j.event.Level theLevel) Constructor using a specific logger
-
-
Method Details
-
step10_resourceModified
-
step20_beforeChecked
-
step30_subscriptionMatched
public void step30_subscriptionMatched(ResourceDeliveryMessage theMessage, InMemoryMatchResult theResult) -
step35_subscriptionNotMatched
-
step40_beforeDelivery
-
step45_deliveryFailed
-
step50_afterDelivery
-
log
protected void log(SubscriptionDebugLogInterceptor.EventCodeEnum theEventCode, String theMessage, Object... theArguments)
-