log_util_init

Function log_util_init 

#[unsafe(no_mangle)]
pub extern "C" fn log_util_init() -> c_int
Available on crate feature logging only.
Expand description

Initializes mcm logging.

The default implementation creates a config file at /data/mcm-core/log_config.txt if it doesn’t already exist. It then reads the contents of this file which is expected to be an integer. The value is interpreted as follows:

  • 0 disable logging
  • 1 log to stdout
  • 2 log to /data/mcm-core/log/mcm-log_[...]

Our implementation doesn’t do anything.