1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Commit Graph

180 Commits

Author SHA1 Message Date
Brian Pane
161035891f Simplified mod_logio to take advantage of the delayed invocation of
the logger.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/async-dev@307346 13f79535-47bb-0310-9956-ffa450edef68
2005-10-09 02:45:20 +00:00
Jim Jagielski
d81de0d9b3 Add ap_append_pid(); This is performed enough to warrant
a function I think, especially with the fact that
the mapping of getpid() to APR_PID_T_FMT isn't
consistant in some areas. 


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@265506 13f79535-47bb-0310-9956-ffa450edef68
2005-08-31 15:22:08 +00:00
Jeff Trawick
5b3a9d83fd mod_log_config: %{hextid}P will log the thread id in hex with APR
versions 1.2.0 or higher.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@265033 13f79535-47bb-0310-9956-ffa450edef68
2005-08-31 12:34:07 +00:00
Ian Holsman
8c1e315d3f Doxygen fixup / cleanup
submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@263931 13f79535-47bb-0310-9956-ffa450edef68
2005-08-28 23:03:59 +00:00
Brian Pane
34e82d6a25 use struct assignment instead of memcpy so the compiler can decide whether to inline the copy loop or call memcpy
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@208972 13f79535-47bb-0310-9956-ffa450edef68
2005-07-03 21:21:46 +00:00
Joe Orton
9687f8c6a7 Update remaining 2004 copyright notices.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190592 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 13:54:34 +00:00
Jeff Trawick
39714846f7 fix typo in comment
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170914 13f79535-47bb-0310-9956-ffa450edef68
2005-05-19 11:53:48 +00:00
William A. Rowe Jr
20d06d7a06 Reintroduce stack frame construction with /Oy- (removal was implied by /O2).
This makes binaries far easier to debug, during operation and for post-crash
  .dmp analysis.  Do not alter /Gs optimizations per brane.

Reviewed by: stoddard, brane

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170253 13f79535-47bb-0310-9956-ffa450edef68
2005-05-15 19:11:57 +00:00
Justin Erenkrantz
905cdf9f0b Update copyright year to 2005 and standardize on current copyright owner line.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 20:28:49 +00:00
Paul Querna
196fce4667 * mod_log_config.c: Revert r109866 which used apr_file_writev instead of an
apr_file_write w/ a memcpy. Roy Fielding provided a -1 veto
                    on the commit, based on concerns that writev is not 
                    guaranteed to be atomic like a write.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@110069 13f79535-47bb-0310-9956-ffa450edef68
2004-12-07 03:41:18 +00:00
Paul Querna
9d58018f5e mod_log_config.c: Use iovecs to write the log line to eliminate a memcpy
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@109866 13f79535-47bb-0310-9956-ffa450edef68
2004-12-05 07:05:23 +00:00
Bradley Nicholes
804ff9ab22 Allow APR to exist and build outside of the httpd/srclib file structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106975 13f79535-47bb-0310-9956-ffa450edef68
2004-11-30 00:12:39 +00:00
Joe Orton
c36ecfa64f Remove the .cvsignore files.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105796 13f79535-47bb-0310-9956-ffa450edef68
2004-11-19 09:07:29 +00:00
Jeff Trawick
ecab476cae mod_log_config: Fix a bug which prevented request completion time
from being logged for I_INSIST_ON_EXTRA_CYCLES_FOR_CLF_COMPLIANCE
processing.

PR:             29696
Submitted by:   Alois Treindl <alois astro.ch>
Reviewed by:	Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103991 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 13:08:06 +00:00
André Malo
e47931813e this should save one or two cycles
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103767 13f79535-47bb-0310-9956-ffa450edef68
2004-05-25 19:39:50 +00:00
Joe Orton
96c0ef3f90 * modules/loggers/mod_log_config.c, server/log.c (open_error_log,
ap_replace_stderr_log): Use APR_LARGEFILE when opening log files, to
allow log files to exceed the 2Gb limit if necessary.

PR: 13511


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103627 13f79535-47bb-0310-9956-ffa450edef68
2004-05-06 10:18:07 +00:00
André Malo
b8e029ae12 fix build on systems without unistd.h
Submitted by: Guenter Knauf <eflash gmx.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103530 13f79535-47bb-0310-9956-ffa450edef68
2004-04-26 18:58:59 +00:00
André Malo
de6b6ff89d add dsp and exp file for mod_log_forensic
incorporate into Win32 build


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103454 13f79535-47bb-0310-9956-ffa450edef68
2004-04-19 18:34:59 +00:00
André Malo
c2a3b20bea cleanup log_header_out function:
- no need to ask r->err_headers_out, because it's already merged with
  r->headers_out at this stage
- allow multiple headers like Set-Cookie to be logged properly

PR: 27787


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103331 13f79535-47bb-0310-9956-ffa450edef68
2004-04-10 17:48:52 +00:00
André Malo
d3ffc73171 no longer remove the EOS bucket
PR: 27928
Submitted by: Bojan Smojver <bojan rexursive.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103263 13f79535-47bb-0310-9956-ffa450edef68
2004-04-03 20:50:00 +00:00
Jeff Trawick
3273ddb6de fix an old misfeature: "BufferedLogs Off" would sort-of turn
buffered logging on as it set the log writer to the buffered log
writer, though it would leave the are-logs-buffered flag off

this misfeature combined with recent mutex logic for buffered logs
led to a segfault with "BufferedLogs Off"


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102783 13f79535-47bb-0310-9956-ffa450edef68
2004-02-26 20:15:26 +00:00
Jeff Trawick
7122d6ea3a a kind fix for a compile error unfortunately broke an order
dependency...  the buffered logs array needs to be initialized
prior to opening the logs


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102781 13f79535-47bb-0310-9956-ffa450edef68
2004-02-26 20:00:55 +00:00
André Malo
d20937008b forward port to not log twice
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102730 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 17:09:20 +00:00
André Malo
f93ccbd7c2 do not exit() from inside a module!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102729 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 16:38:36 +00:00
André Malo
c3617eb632 ugh! Fix log open error condition, which never matched.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102728 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 15:53:49 +00:00
André Malo
4f71cbdc98 allow log pipes to be relative to serverroot as well
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102727 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 15:45:02 +00:00
André Malo
9ae33ec8ed there's no such default
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102725 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 15:23:24 +00:00
André Malo
a688f06b19 fix name of The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102618 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:31:03 +00:00
André Malo
3097e08b49 oops
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102568 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 12:14:07 +00:00
André Malo
5410a0d131 fix copyright dates according to the first checkin
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102566 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 12:10:29 +00:00
André Malo
4f02cb1e18 apply Apache License, Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 22:58:42 +00:00
André Malo
866b6af8f3 in conservative C declarations still have to be the first in a function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102361 13f79535-47bb-0310-9956-ffa450edef68
2004-01-18 00:00:18 +00:00
Jeff Trawick
e6834bc9b4 mod_log_config: Fix corruption of buffered logs with threaded
MPMs.

PR:               25520


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102355 13f79535-47bb-0310-9956-ffa450edef68
2004-01-17 00:16:45 +00:00
Joe Orton
b92c3e35e8 * modules/loggers/config.m4: Fix --enable-mods-shared=all case where
$enable_log_forensic gets set to the empty string.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102241 13f79535-47bb-0310-9956-ffa450edef68
2004-01-09 11:47:39 +00:00
Martin Kraemer
601c88636f Undo last change in order not to break Netware builds...
PR:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102190 13f79535-47bb-0310-9956-ffa450edef68
2004-01-05 11:12:03 +00:00
Martin Kraemer
ece48280a1 Ugly hack to get this module to compile. The path to test_char.h (which
lives in the server/ directory) must either be added to one of the build/*.m4
files --which would be even uglier--, to the modules/logger/Makefile, or
to the modules/loggers/mod_log_forensic.c file itself. For now, put it here.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102186 13f79535-47bb-0310-9956-ffa450edef68
2004-01-05 10:33:52 +00:00
Joe Orton
dd1b0f0576 * modules/loggers/config.m4: Add 'server' directory to include path if
mod_log_forensic is enabled.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102167 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 20:15:59 +00:00
Bradley Nicholes
72729828ca Add mod_log_forensic to the NetWare build
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102165 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 19:40:33 +00:00
Bradley Nicholes
eb529a4d7c Don't hardcode the location of the test_char.h header. The path should be added to the INCLUDE path. Also, use the apr_uint32_t type for next_id which is compatible with the apr_atomic functions.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102164 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 19:18:53 +00:00
Erik Abele
b20a1ec4df Add missing apr_ to size_t.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102156 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 16:02:15 +00:00
Joe Orton
44a849be1c * modules/loggers/mod_log_forensic.c (struct hlog, log_before,
log_after): Use apr_size_t for storing string sizes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102154 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 15:49:57 +00:00
Ben Laurie
b2d154535b Make forensic logging EBCDIC-safe.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102153 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 15:33:41 +00:00
Ben Laurie
069b75134b Use ap_assert().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102152 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 14:35:21 +00:00
André Malo
ca1c2f06ea prevent module from segfaulting when not configured.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102145 13f79535-47bb-0310-9956-ffa450edef68
2004-01-02 23:35:59 +00:00
Ben Laurie
c154a09f30 Add forensic logging.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102141 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 15:39:30 +00:00
André Malo
fb07607180 update license to 2004.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 13:26:26 +00:00
Joe Orton
3be85f7869 * modules/loggers/mod_log_config.c (log_request_time): Log
the minutes component of the timezone correctly.

PR: 23642
Submitted by: Hong-Gunn Chew <hgbug@gunnet.org>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101703 13f79535-47bb-0310-9956-ffa450edef68
2003-11-05 17:16:00 +00:00
André Malo
fa20e7a4a7 fix %b format to write really "-" if bytes_sent == 0.
Submitted by: Kess


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101021 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 16:03:03 +00:00
Jeff Trawick
4144e68db8 fix a comment to explain how to log the thread id
Submitted by:          nd


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99818 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:32:41 +00:00
Jeff Trawick
ab74e345f0 as Andre' pointed out, we don't need %{pid/tid}P since the user
can do %P/%{tid}P or %{pid}P/%{tid}P


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99449 13f79535-47bb-0310-9956-ffa450edef68
2003-04-19 03:06:30 +00:00