Class SubscriptionDebugLogInterceptor
- java.lang.Object
-
- ca.uhn.fhir.jpa.subscription.module.interceptor.SubscriptionDebugLogInterceptor
-
public class SubscriptionDebugLogInterceptor extends Object
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.module.interceptor.SubscriptionDebugLogInterceptor.SUBS20in 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 Modifier and Type Class Description static classSubscriptionDebugLogInterceptor.EventCodeEnum
-
Constructor Summary
Constructors Constructor Description SubscriptionDebugLogInterceptor()Constructor that logs at INFO level to the loggerca.uhn.fhir.jpa.subscription.module.interceptor.SubscriptionDebugLogInterceptorSubscriptionDebugLogInterceptor(Function<SubscriptionDebugLogInterceptor.EventCodeEnum,org.slf4j.Logger> theLogFactory, org.slf4j.event.Level theLevel)Constructor using a specific logger
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
SubscriptionDebugLogInterceptor
public SubscriptionDebugLogInterceptor()
Constructor that logs at INFO level to the loggerca.uhn.fhir.jpa.subscription.module.interceptor.SubscriptionDebugLogInterceptor
-
SubscriptionDebugLogInterceptor
public SubscriptionDebugLogInterceptor(Function<SubscriptionDebugLogInterceptor.EventCodeEnum,org.slf4j.Logger> theLogFactory, org.slf4j.event.Level theLevel)
Constructor using a specific logger
-
-
Method Detail
-
step10_resourceModified
public void step10_resourceModified(ResourceModifiedMessage theMessage)
-
step20_beforeChecked
public void step20_beforeChecked(ResourceModifiedMessage theMessage)
-
step30_subscriptionMatched
public void step30_subscriptionMatched(ResourceDeliveryMessage theMessage, InMemoryMatchResult theResult)
-
step35_subscriptionNotMatched
public void step35_subscriptionNotMatched(ResourceModifiedMessage theMessage)
-
step40_beforeDelivery
public void step40_beforeDelivery(ResourceDeliveryMessage theMessage)
-
step45_deliveryFailed
public void step45_deliveryFailed(ResourceDeliveryMessage theMessage, Exception theFailure)
-
step50_afterDelivery
public void step50_afterDelivery(ResourceDeliveryMessage theMessage)
-
log
protected void log(SubscriptionDebugLogInterceptor.EventCodeEnum theEventCode, String theMessage, Object... theArguments)
-
-