diff options
author | Yann Ylavic <ylavic@apache.org> | 2023-03-14 11:11:24 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2023-03-14 11:11:24 +0000 |
commit | e5fa6ee46ec1d32aa4c85edce752905a21e0cfad (patch) | |
tree | 1b67ca84f7ff26a50da4f7f1e209676d384238db /changes-entries | |
parent | 05202ceceacf1cc448ba7e84601871b39879eea1 (diff) | |
download | httpd-e5fa6ee46ec1d32aa4c85edce752905a21e0cfad.tar.gz |
core: Add formats %{z} and %{strftime-format} to ErrorLogFormat. PR 62161.
%{z} prints the timezone offset (i.e. "[+-]nnnn") and %{strftime-format} allows
any %-format handled by [apr_]strftime().
* include/util_time.h():
Define new AP_CTIME_OPTION_GMTOFF option for ap_recent_ctime_ex().
* server/util_time.c(ap_recent_ctime_ex):
Handle AP_CTIME_OPTION_GMTOFF to print "[+-]nnnn" timezone.
* server/log.c(log_ctime):
If the format contains a '%' it's for strftime(), otherwise it's builtin
with new 'z' as AP_CTIME_OPTION_GMTOFF.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'changes-entries')
-rw-r--r-- | changes-entries/errorlogformat.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/changes-entries/errorlogformat.txt b/changes-entries/errorlogformat.txt new file mode 100644 index 0000000000..4906ae599d --- /dev/null +++ b/changes-entries/errorlogformat.txt @@ -0,0 +1,3 @@ + *) core: Add formats %{z} and %{strftime-format} to ErrorLogFormat. + PR 62161. [Yann Ylavic] + |