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
- @see iceyee_time
- @see tokio
Macros§
Structs§
- 日志.
Enums§
- 日志等级.
Functions§
- 日志的默认路径.
- 用户主目录.
- 初始化.
- 输出日志.