<aside> đź’ˇ
This document explains how to set the logging level from the YAML configuration of our nodes.
</aside>
Set “minimum severity” of logging level:
__log__:
level: "warning"
Set explicitly desired output logs:
__log__ :
debug : true
info : false
notice : false
warning : true
error : true
When an Exwayz node finds on of the above YAML maps in an input configuration file, it will set the logging level of the node accordingly.
The logging level are ranked in this order
Level | debug |
info |
notice |
warning |
error |
---|---|---|---|---|---|
Severity | 0 | 1 | 2 | 3 | 4 |
The user can either
Set a minimum logging level severity with key level
. For instance
__log__:
level: "info"
will only allow info
, notice
, warn
and error
console logs.
Set explicitely the desired console logs. For instance
__log__ :
debug : true
info : false
notice : false
warning : false
error : true
will only allow debug
and error
console logs.