Module di_log
The di_log module provides a ring buffer logging facility which on request dumps the ring buffer contents either as result of the DI call or in a file on HDD.
Dumping the ring buffer can be invoked via JSONRPC interface. Ring buffer size and string length can be customized at compile time, see DILog.h.
di_log module allows to run sems with debug loglevel in production without significant performance loss.
module "di_log" {
loglevel = debug
}- loglevel
- min loglevel for messages to save. Could be integer or text representation of the messages logging level. possible values:
- 0 or error
- 1 or warn
- 2 or info,
- 3 or debug
JSONRPC methods
di_log provides JSONRPC method core.request.log.dump to save ring buffer content on disk.