-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize log_format #564
Comments
I tried to use custom log_format with the following steps:
After that I've got an error:
Upset. |
@jwilder Sorry for the false bug report - the problem was on my side. I've named the .conf file which contains log_format directive 'okmeter.conf' so it was loaded after default.conf which is the reason of the error. After I renamed it to '00-okmeter.conf' everything works like a charm. I suggest this issue to be closed - log_format can be customized without any problem. |
Closing as per last comment |
I wanted to customize the
log_format
but it seems I cannot in the current form. I wanted to send over a PR but I just wanted to run the implementation by you once @jwilder.I was planning of doing the implementation in the same fashion as
/etc/nginx/proxy.conf
. So I will use/etc/nginx/log_format.conf
and include a defaultlog_format
if the file isn't present. Does that sound like a good solution?The text was updated successfully, but these errors were encountered: