https://bz.apache.org/bugzilla/show_bug.cgi?id=62161

--- Comment #4 from Yann Ylavic <ylavic....@gmail.com> ---
Created attachment 38485
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38485&action=edit
ErrorLogFormat to accept "%{z}t" and "%{<strftime-format>}t"

ErrorLogFormat is about every log in any httpd context (loading, request,
connection...), while LogFormat is always handled in the context of (the end
of) a request where all informations regarding the request are known/populated.
That and for historical reasons too (probably) they don't share much
code/formats.
For plain "%t" we can't change the output now, this would break for someone
somewhere.

This patch adds strftime() format by looking up for a '%' in the format, to
avoid (or minimize the chance of) breaking existing configurations like
"%{abcdu}t" where everything but 'u' or 'c' was ignored.
It also adds the special "%{z}t" format (or still combined with the existing
'c' and 'u' ones like in "%{uz}t" or "%{cuz}t").
The default time format gets treated as a fast-path too (no ErrorLogFormat
being handled as "%{u}t" internally).

Can you try it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to