Skip to content

Simple logger, wich can write to file

License

Notifications You must be signed in to change notification settings

Ciubix8513/lunar-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lunar-logger

Simple logger, that can.. well... log stuff, both to console and to a file.

Works mostly like env_logger, except configured entirely from code and can write to files by itself. Also supports logging on wasm.

Usage:

   use lunar_logger::Logger;

   let mut logger = Logger::new();

   logger.add_filter("wgpu", lunar_logger::FilterType::Crate, log::LevelFilter::Warn);
   logger.set_default_filter(log::LevelFilter::Info);
   logger.enable_logger();

   log::info!("It works!");