rogger 0.1.1

Logging macros for Rinrin.rs
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented7 out of 7 items with examples
  • Size
  • Source code size: 100.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Rinrin0413/rogger
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Rinrin0413

Rogger

Logging macros for Rinrin.rs
This crate is VERY optimized for Rinrin.rs so it may not be suitable for other projects.
but usage is very simple and easy.

Installation

Add the following to your Cargo.toml file:

[dependencies]
rogger = "*"
chrono = "0.4"
colored = "2"

Choose the version of the crate freely but it is safer to do as above.

Usage

use rogger::*;
use colored::Colorize;

fn main() {
    let ver = "0.1.0";
    info!("Version: {}", ver);

    let dev = "Foo PC";
    warn!("Your device \"{}\" is deprecated", dev);

    let err = "Operating System is not found";
    error!("Fatal: {}", err);

    let buf = 0x12345678;
    debug!("Buffer: 0x{:x}", buf);

    let age = 17;
    trace!("Age: {}", age);

    flag!();
    flag!("i wake up!");
}

example

Features

  • jst: Use JST for timestamps.

  • utc_jst: Provide additional logging macros as *_jst!() in module jst.

MIT