Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Configure Canton logging in static configuration file?Forum ↗

Configure Canton logging in static configuration file?

App Development3 posts145 views1 likesLast activity Dec 2023
WA
WallaceKellyOP
Dec 2023

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?

WA
WallaceKelly
Dec 2023

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

RA
Ratko_Veprek
Dec 2023

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.

← Back to Discussions