logrus添加支持彩虹日志的配置字段force_colors

This commit is contained in:
2025-07-17 03:18:31 +08:00
parent 47c72651db
commit c2726db8a1
3 changed files with 14 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ message Logger {
string timestamp_format = 3; // 定义时间戳格式,例如:"2006-01-02 15:04:05"
bool disable_colors = 4; // 不需要彩色日志
bool disable_timestamp = 5; // 不需要时间戳
bool force_colors = 6; // 是否开启彩色日志
}
// Fluent