lunar-logger

Crates.iolunar-logger
lib.rslunar-logger
version0.2.1
sourcesrc
created_at2024-05-11 20:39:35.188341
updated_at2024-08-10 17:33:31.616552
descriptionSimple logger with write to file functionality
homepage
repositoryhttps://github.com/Ciubix8513/lunar-logger
max_upload_size
id1237030
size26,909
Luna (Ciubix8513)

documentation

README

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!");
Commit count: 16

cargo fmt