Parent Directory
|
Revision Log
| Links to HEAD: | (view) (annotate) |
| Sticky Revision: |
Bring back OS/2 support. Reverses r758929 with a little bit of conflict resolution.
remove OS/2 platform support
Mostly revert r733493: signal based rotation for rotatelogs. Prefer adding reliable piped logs to the error loggers in httpd, so that one could simply kill rotatelogs and httpd automatically starts new instances of all loggers.
Adopt latest changes in usage message.
Allow size units B, K, M, G and combination of time and size based rotation for rotatelogs.
rotatelogs: Add flag for verbose (debug) output.
More rotatelogs changes: - checkRotate() notes the reason for rotation - rename a few variables - rename some macros and introduce a few more
Minor rotatelogs changes: - remove 'now' from status struct. We only need it locally. - add 'static' to function declaration, although the code is still in a single file - change signature of get_now() - make argument count check easier to understand
Use APR_WANT_STRFUNC and apr_want.h instead of APR_HAVE_* and system header inclusion.
Allow to trigger rotatelogs log file rotation from using HUP and INT signals to the rotatelogs process. This is helpful, when log activity is low, but you want rotatelogs to close the open log files. SIGHUP triggers checking the rules given during startup, SIGINT forces rotate independently form those rules. When the signal triggers a rotation, the open file is closed immediately. The new file is opened when new log data arrives, or in case "-f" was given it is opened immediately. Based on my patch in BZ 44427. Note on Windows: The new functionality is undefined when SIGHUP or SIGINT are not available. Does the use case make sense on Windows? If so, which signals should we use?
Addition to r733479 and r733479: Mainly cleanup plus correct decision in checkRotate() if status->nLogFD is NULL.
Addition to r744476: - Fix compilation error - set correct time when forcing log file open on startup
Refactor rotatelogs to allow easier implementation of signal triggered log rotation. - move code into new functions checkRotate() and doRotate() - bundle config data and runtime data in two structs to allow easier passing to functions - Simplify bypass_io logic as a first use case for doRotate and rename flag to force_open to reflect the new logic
rotatelogs: Log the current file size and error code/description when failing to write to the log file. Sometimes users have a hard time believing that their little log file was really big enough to reach quota/filesystem/other limit back at the time of the error.
Add in new option for rotatelogs: -f This forces rotatelogs to create the logfile as soon as started not as soon as it sees it's first line of input.
* Don't leak memory when reopening the logfile. PR: 40183 Submitted by: rpluem, Takashi Sato <serai lans-tv.com> Reviewed by: rpluem
- when using "-l" reduce two consecutive calls to apr_time_now() to one. This will not change the logic if no "-l" gets used, and it will spare one call to apr_time_now() in case "-l" gets used and more important it gives the code better atomicity, because in fact between the two calls there is a slight change of jumping oder the DST boundary - for historic reasons the same code block is used two times with a slightly different way of transforming apr_time_t to int (once division by APR_USEC_PER_SEC, once call to apr_time_sec()), so let's unify it. - finally move the block into a function, because it gets used already two times. PR: 44004 Submitted by: Rainer Jung <rainer.jung kippdata.de> Reviewed by: rpluem
Allow local timestamps to be used when rotating based on file size. IOW, accept and respect either -l or UTC offset when rotating based on file size.
improve command-line parsing example invocations now flagged as invalid: specifying UTC offset with size-based rotation specifying -l with size-based rotation specifying both -l and UTC offset range checking of integer parameters not attempted; basic data type issues may need to be addressed first such as the use of unsigned int for max file size
increase size of error string buffer passed to apr_strerror(); 120 is the size most frequently used in Apache; APR provides no hints
* support/rotatelogs.c (main): Produce useful error message for open() failures. PR: 39487
update license header text
Update the copyright year in all .c, .h and .xml files
No functional Change: Removing trailing whitespace. This also means that "blank" lines consisting of just spaces or tabs are now really blank lines
Update copyright year to 2005 and standardize on current copyright owner line.
general property cleanup
make the check for GMT offset occur each time through the loop, in case a switch between standard and daylight savings time occurred. (correction to previous code courtesy of Uli Zappe.) PR: 24417 Submitted by: Uli Zappe <uli ritual.org>
oops; left over from an earlier version
add "-l" option to indicate interval is based on localtime not gmt
fix name of The Apache Software Foundation
fix copyright dates according the first cehck in
apply Apache License, Version 2.0
update license to 2004.
finished that boring job: update license to 2003. Happy New Year! ;-))
Axe some warnings in rotatelogs which came when the program was
converted to use APR. The behaviors of apr_file_read() and
apr_file_write() weren't taken completely into account.
But note: In a couple of places the check "nRead < 0" was removed.
While that is meaningless with APR and hasn't done anything
useful in a long time, in Apache 1.3 days it was essentially
a check for read-failed-with-EINTR. Apparently a rotation
would occur if the read was interrupted by a signal. That
function has been lost with the APR-ization.
PR: 12617
Cleanup some type mismatch emits and consistify to our new apr time helpers
Just quiet an annoying warning.
Added log rotation based on file size to the RotateLog support utility.
Oops, found another typo
Fixing a typo
Correct const'ness of argv in all support apps, and use the new apr_app_initialize over apr_initialize for win32, and other platforms that may wish to tweak 'apr-ized' application support (e.g. Netware?)
Update callers of apr_explode_gmt to apr_time_exp_gmt. The function was renamed in apr. Submitted by: Thom May <thom@planetarytramp.net>
Update our copyright for this year.
apr-utils rename apr_ansi_time_to_apr_time and apr_exploded_time_t. PR: Obtained from: Submitted by: Thom May <thom@planetarytramp.net> Reviewed by: Ian Holsman
Too many args is a bad thing too, some days
Rewrite of rotatelogs as an apr-ized app. Mladen Turk <mturk@mappingsoft.com>, William Rowe
include string.h for the strstr() prototype
Enhance customisability of rotatelogs: strftime(3) formatting of filename and offset from UTC. Reviewed by: Greg Stein, David Reid, OtherBill
Update copyright to 2001
All the supports now build on APR (+APRUTIL), no reliance on httpd.
*) Accomodate an out-of-space condition in the piped logs and the
rotatelogs.c code, and no longer churn log processes for this
condition. [Victor J. Orlikowski]
Just style nits before someone goes and does something significant. Submitted by: Victor J. Orlikowski [v.j.orlikowski@gte.net] Reviewed by: William Rowe
Protect system header files with the appropriate macros.
Clean up a big chunk of ap_config.h. This basically stops ap_config.h from including any files. Because of this change, other files must include their own headers. I also cleaned up a couple of other bugs in some modules because I had to compile them all. I expect this to break multiple platforms, but this will be fixed over time. The massive configure cleanup is almost done. I will go through the files one more time after this commit.
Why should Ryan have all the fun? Cleans up compiler warning emits.
Make reliable piped logs work on 2.0.
Fix some compile breaks in the support directory. These have not been tested, but they do compile at least.
Update to Apache Software License version 1.1
Fix FreeBSD build break caused by my last commit to the file. Doh!
Add rotatelogs to the Windows port
Apache 1.3.9 baseline for the Apache 2.0 repository. Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9 Submitted by: Apache Group
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
| apache@apache.org | ViewVC Help |
| Powered by ViewVC 1.1.2 |