Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] 关于日志内容与日志时间的格式标准化问题。 #412

Open
laminux29 opened this issue Oct 27, 2023 · 1 comment
Open
Labels

Comments

@laminux29
Copy link

目前日志存在不标准的问题:

1.时间,目前是 Fri Oct 27 18:33:21 这样的格式,建议规范化为 yyyy-MM-dd HH:mm:ss.SSS 这种格式,比如:
2023-10-27 18-32-51.254 [Error] XXXXXX

2.当 debug 为 false 时,输出内容的格式也不标准,目前是:
DDNS[ v2.13.3@2023-04-19T11:45:22+00:00 ] run: nt win32
Configuration was loaded from <== C:\xxxx\ddns-config.json
========================= Fri Oct 27 18:31:34 2023 =========================

Fri Oct 27 18:31:34 2023 aaa.bb.com(A) ==> 1.2.3.4 [via DIRECT]

建议改为:
2023-10-27 18-32-51.254 [INFO] DDNS[ v2.13.3@2023-04-19T11:45:22+00:00 ] run: nt win32
2023-10-27 18-33-11.111 [INFO] Configuration was loaded from <== C:\xxxx\ddns-config.json
2023-10-27 18-34-12.345 [INFO] aaa.bb.com(A) ==> 1.2.3.4 [via DIRECT]

@laminux29 laminux29 changed the title [feature] 关于日志行号与日志时间的标准化问题。 [feature] 关于日志内容与日志时间的格式标准化问题。 Oct 27, 2023
@NewFuture
Copy link
Owner

这样确实更好一点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants