Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Do Canton bootstrap scripts have access to the Canton standard logger?Forum ↗

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

App Development2 posts280 views1 likesLast activity Jan 2023
MI
Michael_SchaefferOP
Jan 2023

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

CO
cocreature
Jan 2023 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")
← Back to Discussions