We'll likely need to "rebase" our OPA version to include tests for this (in case there are any in the YAML suite), but once that's done, this should be a fairly trivial addition. Default behavior should be to pipe print calls via the logger, and have printing be configurable separately from the application log events.
With this now merged into OPA: https://github.com/open-policy-agent/opa/pull/5501
We'll likely need to "rebase" our OPA version to include tests for this (in case there are any in the YAML suite), but once that's done, this should be a fairly trivial addition. Default behavior should be to pipe print calls via the logger, and have printing be configurable separately from the application log events.