Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Set logging options for daml script calls?Forum ↗

Set logging options for daml script calls?

App Development3 posts68 views1 likesLast activity Sep 2024
WA
WallaceKellyOP
Sep 2024

How does one customize the logback options when running daml script?

WA
WallaceKelly
Sep 2024

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.

WA
WallaceKelly
Sep 2024

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.

← Back to Discussions