I see some examples in the canton doc that logger is used. When I use this I see it’s not found.
cmd4.sc:1: not found: type ConsoleEnvironment
def pruneAllNodes(pruneUpToIncluding: CantonTimestamp)(implicit env: ConsoleEnvironment): Unit = {
^
cmd4.sc:16: not found: value logger
logger.warn(
^
cmd4.sc:26: not found: value logger
case None => logger.info(s"Nothing to prune up to ${pruneUpToIncluding}")
^
Compilation Failed
You should be able to use a logger in any canton console environment, but it is not available by default.
First import these to be able to grab a logger for your script: