feat: 日志格式调整
This commit is contained in:
@@ -160,6 +160,7 @@ func setupLogger(configManager types.ConfigManager) {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
logrus.SetFormatter(&logrus.TextFormatter{
|
logrus.SetFormatter(&logrus.TextFormatter{
|
||||||
|
ForceColors: true,
|
||||||
FullTimestamp: true,
|
FullTimestamp: true,
|
||||||
TimestampFormat: "2006-01-02 15:04:05",
|
TimestampFormat: "2006-01-02 15:04:05",
|
||||||
})
|
})
|
||||||
|
@@ -12,6 +12,7 @@ services:
|
|||||||
# 挂载配置文件(只读)
|
# 挂载配置文件(只读)
|
||||||
- ./.env:/app/.env:ro
|
- ./.env:/app/.env:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
tty: true
|
||||||
|
|
||||||
# 健康检查
|
# 健康检查
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
Reference in New Issue
Block a user