Function lib_flutter_rust_bridge_codegen::init_logger
source · pub fn init_logger(path: &str, verbose: bool) -> Result<(), InitError>Expand description
Initializes logging to file and standard output.
All logs with level debug(with parameter verbose=true or system variable RUST_LOG=“debug”) or above
will be recorded in ./logs/<date>.log.
Logs with level info and above will be output to standard output, with colored tag.
Example
use lib_flutter_rust_bridge_codegen::init_logger;
init_logger("./logs/", false).expect("failed to initialize log");