Skip to main content

Module utils

Module utils 

Source
Expand description

工具函数模块

提供日志库使用的各种工具函数和辅助类型

Structs§

SkipAnsiColorIter
ANSI 颜色跳过迭代器

Enums§

AsyncLogType
异步日志类型

Constants§

CACHE_STR_INIT_SIZE
缓存字符串初始大小

Functions§

build_info
获取构建信息
debug_check_init
调试检查初始化
get_msg_from_cache
从缓存获取消息缓冲区
level_color
获取日志级别对应的颜色
open_log_file_sync
打开日志文件(同步方式)
parse_level
解析日志级别
parse_size
解析文件大小
put_msg_to_cache
将消息缓冲区放回缓存
safe_flush
安全刷新写入器
version
获取版本信息
write_text
写入文本到文件