NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.23k stars 651 forks source link

[feature] 为 run.log 加上时间戳 #326

Closed fdxx closed 1 year ago

fdxx commented 1 year ago

example:

. . . . . . . . . . . . 
L 2022-07-04 - 13:23:55: exp.com(A) ==> x.x.x.x [via DIRECT]
NewFuture commented 1 year ago

实现似乎不难,https://docs.python.org/3/howto/logging.html#displaying-the-date-time-in-messages 不知道是否有广泛需求

liker5092 commented 1 year ago

顶下,log 内增加。必需求

aimai-who commented 1 year ago

顶下,建议每执行一次就记录一次带时间戳的log。log文件膨胀到一定的阈值自动清理。

NewFuture commented 1 year ago

可以考虑加一个logger datefmt 的配置

laozhoubuluo commented 1 year ago

上述功能已于 #372 实现完毕。