Configure Canton logging in static configuration file?

In 2.7.6, I see that Canton logging can be configured on the command line. But I don’t see a way to do the equivalent using static configuration based on the MonitoringConfig and similar classes.

Is my conclusion correct? Command line and logback files are the only way?

The answer is, “Yes my conclusion is correct.” The logback mechanism is independent of the Canton-specific static configuration.

Yes. That’s correct. You can have full control over logging via the normal logback configuration methods: Monitoring — Daml SDK 2.7.6 documentation

The Canton logging configuration just covers conveniently 95% of the usecases. There is one thing though: You can dynamically adjust the log level via cmd line: Console Commands — Daml SDK 2.7.6 documentation

This doesn’t work yet remotely but eventually will.

1 Like