summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-09-18 03:22:47 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-30 17:33:01 -0400
commit0b6de09071acba73bf62397b4eefa7f04e144097 (patch)
treea2cdda3a75b422a455026726608978cdf3ed0af1 /src/log.h
parentf19f71625cbf2d9ec482ae831e68ef7f66aa62bb (diff)
downloadlighttpd-git-0b6de09071acba73bf62397b4eefa7f04e144097.tar.gz
[core] option: errorlog high precision timestamps
server.feature-flags += ("server.errorlog-high-precision" => "enable") Note: if using syslog() for errorlog, modern syslog implementations are configured separately (by an admin) for high precision timestamps; server.feature-flags has no effect on syslog-generated timestamps restructure some of log.c into smaller internal routines keep a file-scoped global log_stderrh to write to STDERR_FILENO so that an errh handle is always available for logging errors fix missing space between timestamp and filename in errorlog output (missing space in lighttpd 1.4.58 and lighttpd 1.4.59) (fixes #3105) x-ref: "missing ( in log lines from mod_auth" https://redmine.lighttpd.net/issues/3105
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 0a8bcc21..1a253fde 100644
--- a/src/log.h
+++ b/src/log.h
@@ -31,6 +31,7 @@ __attribute_format__((__printf__, 6, 7))
void log_error_multiline(log_error_st *errh, const char *filename, unsigned int line, const char * restrict multiline, const size_t len, const char *fmt, ...);
__attribute_cold__
-void log_set_global_errh (log_error_st *errh);
+__attribute_returns_nonnull__
+log_error_st * log_set_global_errh (log_error_st *errh, int ts_high_precision);
#endif