init_logging

Function init_logging 

Source
pub fn init_logging(level: &str, json_format: bool)
Expand description

Initialize the logging system.

§Arguments

  • level - Log level (trace, debug, info, warn, error)
  • json_format - If true, output logs in JSON format

§Example

use guts_node::observability::init_logging;

init_logging("info", true);