Skip to content
CCPEDIAby Unity Nodes
App Development

Set logging options for daml script calls?

3 posts73 views1 likesLast activity Sep 2024

  1. WallaceKellyOP

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

  2. WallaceKelly

    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.

  3. WallaceKelly 1

    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.