Crate iceyee_logger

source
Expand description

日志.

debug, info, warn, error, 这四个要求参数比须实现ToString.

debug_object, info_object, warn_object, error_object, 这四个要求参数比须实现Debug.

§Example

iceyee_logger::debug!(0, "hello world debug.", "second", "third", "fourth");
iceyee_logger::info!(1, "hello world debug.", "second", "third", "fourth");
iceyee_logger::warn!(2, "hello world debug.", "second", "third", "fourth");
iceyee_logger::error!(3, "hello world debug.", "second", "third", "fourth");

§Output

2024-09-29T12:12:44.917+08:00 DEBUG # 0 hello world debug. second third fourth

2024-09-29T12:12:44.917+08:00 INFO  # 1 hello world debug. second third fourth

2024-09-29T12:12:44.917+08:00 WARN  # 2 hello world debug. second third fourth

2024-09-29T12:12:44.917+08:00 ERROR #
    iceyee_logger/tests/test_logger.rs:59:5 test_logger #
    3 hello world debug. second third fourth

Macros§

Structs§

Enums§

Functions§