semigodking / cdns

CureDNS
Apache License 2.0
77 stars 21 forks source link

可读的日志时间戳 #18

Closed zhaibin18 closed 3 years ago

zhaibin18 commented 3 years ago

能否将日志时间戳改为可读格式,多谢!

1610345045.873859 cdns.c:905 cdns_init_server(...) cdns @ 10.1.2.1:7053 1610345045.873927 main.c:264 start_server(...) cdns started 1610345045.918193 cdns.c:715 test_readcb(...) Cool! DNS server 8.8.8.8:53 supports EDNS with UDP payload size: 4096 1610345045.918238 cdns.c:723 test_readcb(...) Cool! DNS server 8.8.8.8:53 returns authority records 1610345045.922319 cdns.c:715 test_readcb(...) Cool! DNS server 1.1.1.1:53 supports EDNS with UDP payload size: 4096 1610345045.922335 cdns.c:723 test_readcb(...) Cool! DNS server 1.1.1.1:53 returns authority records 1610434918.670782 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670840 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670884 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670914 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.672883 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request

semigodking commented 3 years ago

好的,我回头看下。这个倒是没留意

zhaibin18 notifications@github.com 于 2021年2月6日周六 12:08写道:

能否将日志时间戳改为可读格式,多谢!

1610345045.873859 cdns.c:905 cdns_init_server(...) cdns @ 10.1.2.1:7053 1610345045.873927 main.c:264 start_server(...) cdns started 1610345045.918193 cdns.c:715 test_readcb(...) Cool! DNS server 8.8.8.8:53 supports EDNS with UDP payload size: 4096 1610345045.918238 cdns.c:723 test_readcb(...) Cool! DNS server 8.8.8.8:53 returns authority records 1610345045.922319 cdns.c:715 test_readcb(...) Cool! DNS server 1.1.1.1:53 supports EDNS with UDP payload size: 4096 1610345045.922335 cdns.c:723 test_readcb(...) Cool! DNS server 1.1.1.1:53 returns authority records 1610434918.670782 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670840 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670884 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670914 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.672883 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/semigodking/cdns/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XDYIUN7ZJEQ4W3QPKTLS5S6EDANCNFSM4XF3CAXA .

zhaibin18 commented 3 years ago

好的,我回头看下。这个倒是没留意 zhaibin18 notifications@github.com 于 2021年2月6日周六 12:08写道: 能否将日志时间戳改为可读格式,多谢! 1610345045.873859 cdns.c:905 cdns_init_server(...) cdns @ 10.1.2.1:7053 1610345045.873927 main.c:264 start_server(...) cdns started 1610345045.918193 cdns.c:715 test_readcb(...) Cool! DNS server 8.8.8.8:53 supports EDNS with UDP payload size: 4096 1610345045.918238 cdns.c:723 test_readcb(...) Cool! DNS server 8.8.8.8:53 returns authority records 1610345045.922319 cdns.c:715 test_readcb(...) Cool! DNS server 1.1.1.1:53 supports EDNS with UDP payload size: 4096 1610345045.922335 cdns.c:723 test_readcb(...) Cool! DNS server 1.1.1.1:53 returns authority records 1610434918.670782 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670840 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670884 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.670914 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request 1610434918.672883 cdns.c:604 cdns_pkt_from_client(...) Failed to forward DNS request — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#18>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XDYIUN7ZJEQ4W3QPKTLS5S6EDANCNFSM4XF3CAXA .

多谢大佬,用过的最好用的DNS工具!