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 loges 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:
SubscriptionDebugLogInterceptor.EventCodeEnum
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstructor that logs at INFO level to the loggerca.uhn.fhir.jpa.subscription.util.SubscriptionDebugLogInterceptorSubscriptionDebugLogInterceptor(Function<SubscriptionDebugLogInterceptor.EventCodeEnum,org.slf4j.Logger> theLogFactory, org.slf4j.event.Level theLevel)Constructor using a specific logger -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlog(SubscriptionDebugLogInterceptor.EventCodeEnum theEventCode, String theMessage, Object... theArguments)voidstep10_resourceModified(ResourceModifiedMessage theMessage)voidstep20_beforeChecked(ResourceModifiedMessage theMessage)voidstep30_subscriptionMatched(ResourceDeliveryMessage theMessage, InMemoryMatchResult theResult)voidstep35_subscriptionNotMatched(ResourceModifiedMessage theMessage)voidstep40_beforeDelivery(ResourceDeliveryMessage theMessage)voidstep45_deliveryFailed(ResourceDeliveryMessage theMessage, Exception theFailure)voidstep50_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)
-