How to enable structured logging in Xcode 15 while also disabling debug logs in unit tests?

28 Views Asked by At

Right now my project has environment variable OS_ACTIVITY_MODE=info enabled in the Xcode scheme (test section) to prevent debug logs during unit tests however this environment variable also disables Xcode 15's structured logging.

Is there a way to both prevent logging during unit tests and allow structured logging?

enter image description here

0

There are 0 best solutions below