pub fn init()
Expand description
Initializes the global logger with an instance of env_logger::Logger
with ECS-Logging formatting.
This should be called early in the execution of a Rust program. Any log events that occur before initialization will be ignored.
§Panics
This function will panic if it is called more than once, or if another library has already initialized a global logger.
§Example
use log::error;
error!("this is NOT logged");
ecs_logger::init();
error!("this is logged");