Skip to content
CCPEDIAby Unity Nodes
App Development

Ledger verbosity change

3 posts265 views1 likesLast activity Nov 2023

  1. David_MartinsOP

    Hello,

    Is it possible to change canton nodes (participant and domain) log verbosity at runtime?

    Thank you

  2. mgodf89

    Hi David,

    Since Canton uses Logback Classic, you can specify a custom logging configuration when starting your domain components.

    You can specify the log level here:

    JAVA_OPTS="-Dlogback.configurationFile=./path-to-file.xml" ./bin/canton --config ...

    I found a barebones logback config in one of our example projects. I cannot guarantee that it’s use in this project matches your setup perfectly, but I think it could be a good place to start

    Best Regards,

    Michael Godfrey
    Enterprise Customer Support
    Digital Asset | Creators of DAML | www.digitalasset.com

  3. Tamas_Kalcza 1

    Hi David,

    You should be specify a custom configuration file as shown in the previous response and use the scan feature of Logback: Chapter 3: Configuration.

    Regards,
    Tamás