
Class SubscriptionDebugLogInterceptor
- java.lang.Object
-
- ca.uhn.fhir.jpa.subscription.util.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.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 Modifier and Type Class Description static class
SubscriptionDebugLogInterceptor.EventCodeEnum
-
Constructor Summary
Constructors Constructor Description SubscriptionDebugLogInterceptor()
Constructor 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
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 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)
-
-