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

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.)

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")
1 Like