Christophe Jaillet
1a7c4e409c
Fix command line parameters as spotted in a comment in the online doc.
...
Thx alfonz.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1645864 13f79535-47bb-0310-9956-ffa450edef68
2014-12-16 07:12:52 +00:00
Eric Covener
b9dc022cc2
use /var/log instead of /var/logs in examples
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1615362 13f79535-47bb-0310-9956-ffa450edef68
2014-08-02 20:19:17 +00:00
Christophe Jaillet
e45084f1d4
Add some compatibilty notes for some options of "support" applications
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1604535 13f79535-47bb-0310-9956-ffa450edef68
2014-06-22 05:36:19 +00:00
Ben Reser
93ff0925d8
Followup to r1533810: Put the rotatelogs docs in the right place.
...
* docs/man/rotatelogs.8,
docs/manual/programs/rotatelogs.html.en: Remove changes from r1533810.
* docs/manual/programs/rotatelogs.xml: Adjust docs for new -d option.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533935 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 18:12:23 +00:00
Eric Covener
dab3bc1339
rotatelogs: add -n number-of-files option to roate through a number
...
of fixed-name logfiles.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490493 13f79535-47bb-0310-9956-ffa450edef68
2013-06-07 01:51:31 +00:00
Joe Orton
a45cbef86b
* support/rotatelogs.c (usage, main): Add support for -c option.
...
Submitted by: Jan Kaluža <jkaluza redhat.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1189220 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 13:54:42 +00:00
Jim Jagielski
69c1a5c854
Cleanup effort in prep for GA push:
...
Trim trailing whitespace... no func change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174747 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:36:39 +00:00
Joe Orton
550078b731
Tweak rotatelogs -p such that the program is invoked the first time a
...
new log file is opened as well as for rotations:
* support/rotatelogs.c (usage): Update.
(post_rotate): Omit third arg if no prev logfile known.
(doRotate): Invoke even if no previous logfile was open.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1140099 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 10:57:10 +00:00
Joe Orton
0f14fc02dc
rotatelogs: Add support for running a custom program after a log
...
rotation.
* support/rotatelogs.c (post_rotate): New function.
(usage, dumpConfig): Update.
(doRotate): Save old filename before rotate; call post_rotate after
successful rotation.
(main): Add -p argument.
* docs/manual/programs/rotatelogs.xml: Document -p.
PR: 51285
Submitted by: <sveniu ifi.uio.no>, jorton
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1137590 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 10:28:05 +00:00
Graham Leggett
74030fa378
rotatelogs: Add -e option to write logs through to stdout for optional
...
further processing.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1051582 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 17:52:43 +00:00
Daniel Earl Poirier
68541d80d2
Since rotatelogs now checks the local time offset on each rotation,
...
no longer need to warn about unpredictable behavior with -l.
Reported by Dave Brondsema, PR44917.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1029156 13f79535-47bb-0310-9956-ffa450edef68
2010-10-30 18:52:11 +00:00
Daniel Earl Poirier
31c8d8214f
Add warning about using rotatelogs filename formats with not
...
enough granularity. PR46318.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1024263 13f79535-47bb-0310-9956-ffa450edef68
2010-10-19 15:12:11 +00:00
Daniel Earl Poirier
7335fa4f9e
Add -L option to create a hard link to the current log file.
...
PR: 48761
Submitted by: <lindon orthanc.ca>
With additional changes by: poirier
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@916377 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 18:00:42 +00:00
Graham Leggett
78469c61be
support/rotatelogs: Support the simplest log rotation case, log
...
truncation. Useful when the log is being processed in real time
using a command like tail.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910719 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 22:01:21 +00:00
Rich Bowen
d361a80a56
Fixes an XML error, and rebuilds the change applied in r734973
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@735925 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 03:19:51 +00:00
Rainer Jung
643d77264c
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@734973 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 11:08:15 +00:00
Rainer Jung
618c7592fc
Allow size units B, K, M, G and combination of
...
time and size based rotation for rotatelogs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@733531 13f79535-47bb-0310-9956-ffa450edef68
2009-01-11 22:45:53 +00:00
Rainer Jung
fd96906302
rotatelogs: Add flag for verbose (debug) output.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@733520 13f79535-47bb-0310-9956-ffa450edef68
2009-01-11 21:26:13 +00:00
Rainer Jung
d73d0412d5
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?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@733493 13f79535-47bb-0310-9956-ffa450edef68
2009-01-11 17:36:07 +00:00
Takashi Sato
f32647d426
Style fix. Almost all are detabs.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@659902 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 03:28:34 +00:00
Jim Jagielski
a3cd2d0507
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@632355 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 15:32:38 +00:00
Jeff Trawick
2e30b4917e
readability tweak
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@602456 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 12:41:38 +00:00
Jeff Trawick
942b075092
correct the order of filesize and offset descriptions
...
according to the current syntax diagram
try to clear up occasional confusion about the
timestamps used in filenames when rotation is based
on a time interval
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@596884 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 00:00:12 +00:00
Jeff Trawick
1abc28d88c
update rotatelogs docs to reflect the support for -l/UTC-offset
...
with size-based rotation
move examples to a formal section in the customary order
add an example of logging at midnight with the date in the
filename
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@596830 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 21:36:12 +00:00
Roy T. Fielding
47e590252a
update license header text
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420993 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 21:18:15 +00:00
Colm MacCarthaigh
dd95d7c37c
Update the copyright year in all .c, .h and .xml files
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +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
André Malo
3bb0f8c1fb
fix copyright notice
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@125273 13f79535-47bb-0310-9956-ffa450edef68
2005-01-15 16:40:26 +00:00
André Malo
5e311552a2
minor cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106851 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 21:54:52 +00:00
André Malo
4ac4e5a1e3
$Revision$ is slightly misdocumented (only available since svn 1.1)
...
use LastChangedRevision instead
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105989 13f79535-47bb-0310-9956-ffa450edef68
2004-11-20 18:42:58 +00:00
André Malo
3b900e6993
adjust properties and revision expansion of the English docs
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105981 13f79535-47bb-0310-9956-ffa450edef68
2004-11-20 17:06:17 +00:00
Ken Coar
4f3d5516c5
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>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103973 13f79535-47bb-0310-9956-ffa450edef68
2004-06-16 21:27:06 +00:00
André Malo
4ff2079df0
document -l option
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103924 13f79535-47bb-0310-9956-ffa450edef68
2004-06-11 22:18:25 +00:00
Astrid Malo
1645a689ba
add an example for windows and netware users not familiar with strftime()
...
submitted by: Guenter Knauf <gk@gknw.de >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103520 13f79535-47bb-0310-9956-ffa450edef68
2004-04-25 19:53:08 +00:00
André Malo
79bba88026
add revision keyword
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103425 13f79535-47bb-0310-9956-ffa450edef68
2004-04-17 11:18:06 +00:00
André Malo
b68721ed3a
fix name of The Apache Software Foundation
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102617 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:22:54 +00:00
André Malo
64fcec24d3
apply Apache License, Version 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102533 13f79535-47bb-0310-9956-ffa450edef68
2004-02-07 15:25:19 +00:00
Joe Orton
e47af46de1
Minor spelling/grammar fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101948 13f79535-47bb-0310-9956-ffa450edef68
2003-12-02 11:49:36 +00:00
André Malo
698c536e50
refer to the correct metafile
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99636 13f79535-47bb-0310-9956-ffa450edef68
2003-04-29 13:08:21 +00:00
André Malo
fb0baa4044
whitespace cosmetics
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99540 13f79535-47bb-0310-9956-ffa450edef68
2003-04-23 17:59:32 +00:00
Joshua Slive
383b72fdea
Convert rotatelogs docs to xml.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99489 13f79535-47bb-0310-9956-ffa450edef68
2003-04-21 22:17:45 +00:00