xan-log

Crates.ioxan-log
lib.rsxan-log
version
sourcesrc
created_at2023-10-28 06:46:18.435749+00
updated_at2025-03-04 06:07:09.88386+00
descriptionMy personal logger
homepage
repositoryhttps://github.com/Xanthorrhizol/xan-log
max_upload_size
id1016746
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Xanthorrhizol (Xanthorrhizol)

documentation

README

xan-log

Usage

  1. the logger will initialized with LOG_LEVEL env variable

list: off, trace, debug, info, warn, error both upper, lower case are parsable

  1. add log lib and extern it in your main.rs or lib.rs
#[macro_use]
extern crate log;
  1. init logger and use the macros
use xan_log::init_logger;

#[macro_use]
extern crate log;

fn main() {
    init_logger();
    error!("idk, some error: {}", "some error");
}
Commit count: 7

cargo fmt