I can specify custom log format for access_log
on Nginx, but it doesn\'t work for error_log
.
Is there anyway to achieve this?
You can't specify your own format, but in nginx build-in several level's of error_log-ing.
Syntax: error_log file [ debug | info | notice | warn | error | crit ]
Default: ${prefix}/logs/error.log
Specifies the file where server (and fastcgi) errors are logged.
Default values for the error level:
In my error_log, time always presented int begin of each error string in log.