How does one customize the logback options when running daml script
?
I found that I can edit the ~/.daml/sdk/x.y.z/daml-sdk/script-logback.xml
.
Still curious if there is a way to do this on the daml script
command line.
You can set the location of a custom logback file on the command line like this:
_JAVA_OPTIONS="-Dlogback.configurationFile=my-script-logback.xml" daml script ...
You can get a starter file to customize from ~/.daml/sdk/x.y.z/daml-sdk/script-logback.xml
.
It works the same way for daml sandbox, of course.
1 Like