Crates.io | lunar-logger |
lib.rs | lunar-logger |
version | 0.2.1 |
source | src |
created_at | 2024-05-11 20:39:35.188341 |
updated_at | 2024-08-10 17:33:31.616552 |
description | Simple logger with write to file functionality |
homepage | |
repository | https://github.com/Ciubix8513/lunar-logger |
max_upload_size | |
id | 1237030 |
size | 26,909 |
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.
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!");