I can specify custom log format for access log in nginx, but it won't work for error log. I wish I always saw time when error occur. Is it possible?
Asked
Active
Viewed 2,628 times
1 Answers
6
No, you cannot change the error log format without changing the Nginx source code.

Martin Fjordvald
- 7,749
- 1
- 30
- 35
-
possible via a custom nginx module? – GG01 Sep 09 '15 at 15:19
-
Yes. You can definitely add this via an nginx module. It might also be possible to do it via Lua now or soon the Javascript scripting they're embedding. – Martin Fjordvald Jan 11 '16 at 05:42