Skip to content
CCPEDIAby Unity Nodes
App Development

Do Canton bootstrap scripts have access to the Canton standard logger?

2 posts301 views1 likesLast activity Jan 2023

  1. Michael_SchaefferOP

    Like other JVM apps, Canton uses a logging framework for its own messages.

    Is it possible to write to a channel of this logging mechanism from a bootstrap script? (I know there’s println, but that doesn’t go through the logging mechanism, with all the disadvantages that implies.)

  2. cocreature 1

    There is an object logger in scope which has the usual .warn, .debug, … methods. So you can put this in a bootstrap file and it shows up as part of the standard log:

    logger.warn("my custom log")