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§

debug
debug_object
error
error_object
info
info_object
warn
warn_object

Structs§

Logger
日志.

Enums§

Level
日志等级.

Functions§

default_target
日志的默认路径.
home_dir
用户主目录.
init
初始化.
print
输出日志.