Stefan Bühler
572f738f29
mod_accesslog: optimize accesslog_append_escaped ( fixes #2236 , thx crypt)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2747 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-08-05 19:53:49 +00:00
Stefan Bühler
cece2fe3c6
mod_accesslog: Fix var declarations mixed in source ( fixes #2233 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2743 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-07-11 17:18:54 +00:00
Stefan Bühler
48f1cf79b4
mod_accesslog: fix %p for ipv6 sockets ( fixes #2228 , thx jo.henke)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2734 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-07-04 08:30:48 +00:00
Stefan Bühler
6e035ae1cf
mod_accesslog: support %e ( fixes #2113 , thx presbrey)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2699 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-12-14 15:58:35 +00:00
Stefan Bühler
6ecb86159c
Fix accesslog escape segfault ( #1551 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2664 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 18:56:04 +00:00
Stefan Bühler
069e848a0c
mod_accesslog: escape special characters ( fixes #1551 , thx icy)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2660 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 16:43:28 +00:00
Stefan Bühler
ea903c7512
mod_accesslog: configurable timestamp logging ( fixes #1479 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2642 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-12 10:13:01 +00:00
Stefan Bühler
22e8b456a9
Fix header inclusion order, always include "config.h" before any system header
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2624 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 14:31:42 +00:00
Stefan Bühler
1527160c69
Add support for pipe logging for server.errorlog ( fixes #296 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2466 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-10 10:50:51 +00:00
Stefan Bühler
63f785a2f8
Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2414 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-07 21:05:37 +00:00
Stefan Bühler
96eb3cf47c
Fix wrong malloc sizes in mod_accesslog (probably nothing bad happened...) ( fixes #1855 , thx ycheng)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2379 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-03 20:16:20 +00:00
Stefan Bühler
21c5377d3f
Use FD_CLOEXEC if possible ( fixes #1821 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2363 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-12-07 15:22:49 +00:00
Stefan Bühler
227d6f1b56
Fix format string bugs with sizeof(int)!=sizeof(size_t) in mod_accesslog for SYSLOG
...
(assuming there are no access-log-lines > 2GB)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2285 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:36 +00:00
Stefan Bühler
52861d77df
Replace buffer_{append,copy}_string with the _len variant where possible ( #1732 , thx crypt)
...
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x))
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 19:38:32 +00:00
Stefan Bühler
25c7c7f3f8
fixed typo in mod_accesslog, localtime instead of localtime_r ( #1699 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2247 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 16:42:14 +00:00
Stefan Bühler
93e7167f84
Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places ( #624 )
...
- as stderr gets redirected to /dev/null before exec in childs, we cannot
write to the log afterwards, so disabled that log messages too.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2163 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:39 +00:00
Stefan Bühler
f9999e286e
Disable logging to access.log if filename is an empty string
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2162 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:18 +00:00
Stefan Bühler
79a6ae3fd4
Fix accesslog port (should be port from the connection, not the "server.port") ( #1618 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2149 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:04:21 +00:00
Jan Kneschke
768a0d0eab
fixed type-cast for NULL in execl() ( fixes #1235 ), fix provided by Frank
...
DENIS
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1872 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 15:04:56 +00:00
Jan Kneschke
642247c353
- fixed various crashes at startup on broken accesslog.format strings
...
(fixes #1000 )
- fixed handling of %% in accesslog.format
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1731 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 19:58:57 +00:00
Jan Kneschke
3c5c8ef54d
fixed accesslog.use-syslog in a conditional and the caching of the
...
accesslog for files (fixes #1064 )
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1729 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 19:20:00 +00:00
Marcus Rückert
8cd1471cb3
- white space cleanup part 2 this time 1.4 ;)
...
i hope it helps with merging stuff back to 1.5
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1371 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 13:26:23 +00:00
Jan Kneschke
de2196c142
don't append a \n for syslog() ( fixes #481 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@963 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-01-31 12:09:58 +00:00
Jan Kneschke
1022432a1e
added %I for bytes_in
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@799 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-10-31 07:56:29 +00:00
Xuefer
949ab7685e
stupid SEGV introduced in [679]
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@684 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-03 03:06:26 +00:00
Xuefer
363301ccf3
added 'V' for HTTP_HOST, updated default accesslog format.
...
able to log all method supported by lighttpd.
cleanup (and possibly be faster) a bit by b=p->conf.access_logbuffer.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@679 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-02 16:09:42 +00:00
Jan Kneschke
962d936d94
don't die if accesslog file is not set
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@571 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-18 10:10:34 +00:00
Jan Kneschke
df688f7de0
pipe and syslog need each log-entry by itself
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@564 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-17 14:42:09 +00:00
Jan Kneschke
bac9212c8f
fixed possible uninit variables of the config-parser fails (merged [183])
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@551 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-16 13:07:46 +00:00
Jan Kneschke
c8408d015c
removed setup_connection (merged [295])
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@512 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:27:07 +00:00
Jan Kneschke
adcc83d26f
cleaned up the errorlog writing, default is now stderr, syslog is requested explicitly
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@475 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-26 08:26:28 +00:00
Jan Kneschke
cdffac9fa6
fixed segfaults in error-msgs if syslog() is failing
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@410 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-27 19:25:55 +00:00
Jan Kneschke
01afa1ca5b
don't segfault on cleanup if the startup failed
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@384 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-15 09:27:04 +00:00
Jan Kneschke
e1fb43d9dd
fixed NULL dereference in logfile cycling if accesslog is not set
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@98 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-06 11:20:35 +00:00
Jan Kneschke
bde657648d
compile fixes for MIPSpro on IRIX
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@68 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 23:01:12 +00:00
Jan Kneschke
bcdc6a3bbc
moved everything below trunk/ and added branches/ and tags/
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-20 14:27:00 +00:00