FHIR Chat · CQF Ruler Verbose Logging · cql

Stream: cql

Topic: CQF Ruler Verbose Logging


view this post on Zulip Andy Stevens (Nov 10 2021 at 17:25):

Is there a property or something somewhere in CQF Ruler that can enable more verbose logging? I wanted to see if there was a way to see more when evaluating a Library than just "Creating new FHIR context for FHIR version [R4]" to help with debugging a workflow using it

view this post on Zulip JP (Nov 10 2021 at 18:01):

Hi Andy,

For CQL logging the latest ruler SNAPSHOT supports this setting:
https://github.com/DBCG/cqf-ruler/wiki/Deployment#cql-logging

For logging in general the ruler uses logback, which can be configured as described here:
http://logback.qos.ch/manual/configuration.html#configFileProperty

view this post on Zulip Andy Stevens (Nov 10 2021 at 18:57):

Thanks for that link, I found out I wasn't originally including my custom hapi.properties, so now that that's fixed, I've changed that cql logging boolean to true. However, I still am not seeing any CQL logging in the logs beyond the create new FHIR context whenever I run an $evaluate, any ideas on what else might be happening?

view this post on Zulip Bryn Rhodes (Nov 10 2021 at 23:09):

Hmmm.... I've reviewed the code and that seems like it ought to be working, here's the relevant line in the evaluate implementation:

view this post on Zulip Bryn Rhodes (Nov 10 2021 at 23:09):

https://github.com/DBCG/cqf-ruler/blob/master/r4/src/main/java/org/opencds/cqf/r4/providers/LibraryOperationsProvider.java#L314

view this post on Zulip Bryn Rhodes (Nov 10 2021 at 23:10):

That LoggingHelper class is accessing the HapiProperties to set the isLoggingEnabled on the debug map, which basically turns on the fire hose.

view this post on Zulip Bryn Rhodes (Nov 10 2021 at 23:10):

Are you able to debug in to that line and see if that's actually getting set?


Last updated: Apr 12 2022 at 19:14 UTC