It is not a problem, but I’d be thankful if you will let me know how to change this 1.0.4 format in logfile:
2019/12/25 10:43:02 IP.IP.IP.IP - - [25/Dec/2019:10:43:02 +0300] “GET / HTTP/1.1” 200 798
to exact format I’d like to see:
2019.12.25 10:43:02 IP.IP.IP.IP “GET / HTTP/1.1” 200 798
My apologies, I didn’t note the conversion of slashes to dots.
To my knowledge, this kind of replacement is not possible when configuring the log output.
I’d advise you use modern log parsing software to make this a non-issue.
If it’s absolutely necessary to prepare logs in this manner, a simple script could be written which would be able to convert the slashes in the date to dots before viewing the logs.
(FWIW this is totally doable and easy in Caddy 2. You can customize the time format and other things for your encoder of choice. JSON Config Structure - Caddy Documentation)
matt: What I see threre is a total KISS principle denial for such simple option - to set desired date format according to STANDARD strftime and/or date format options…it’s not good, ppl…
Relax; believe it or not, it is more complicated than you think. There are many standard formats, and there are a lot of demands from people other than yourself who have different requirements. Please do not be upset at the developers of the free software.