You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/12/24 03:00:09 UTC

DO NOT REPLY [Bug 38033] New: - rotatelogs: add option to maintain `logfile.current' symlink

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38033

           Summary: rotatelogs: add option to maintain `logfile.current'
                    symlink
           Product: Apache httpd-2
           Version: 2.0-HEAD
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P4
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jos@catnook.com


This patch to rotatelogs adds a `-c' option which causes rotatelogs to 
automatically create a `logfile.current' symlink pointing to the most recent 
logfile. This is convenient when using a tail(1) that understands reopened 
files.

As a side effect I changed option parsing to use apr_getopt. Hope I got that 
part right. One potential caveat is that the current patch unlinks `logfile.
current' even if -c is not specified. This way at least a stale symlink will be 
cleaned up but it does incur an obvious risk for people unaware of the feature.

As an aside: I tried subscribing to dev@ but I got the following bounce message:

552 spam score (6.1) exceeded threshold

The original message was:

Return-Path: <jo...@catnook.com>                                                  
Received: (qmail 26229 invoked by uid 1000); 23 Dec 2005 08:33:44 -0000         
Date: 23 Dec 2005 08:33:44 -0000                                                
Message-ID: <20...@lizzy.catnook.local>                    
From: "Jos Backus" <jo...@catnook.com>                                            
To: dev-subscribe@httpd.apache.org                                              
Reply-To: jos@catnook.com

Jos

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38033] - rotatelogs: add option to maintain `logfile.current' symlink

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38033


colm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From colm@apache.org  2005-12-24 16:51 -------
Also, big -1 on this patch, as symlink() is not portable.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38033] - rotatelogs: add option to maintain `logfile.current' symlink

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38033





------- Additional Comments From jos@catnook.com  2005-12-24 03:00 -------
Created an attachment (id=17273)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17273&action=view)
Patch to implement `rotatelogs -c' functionality


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38033] - rotatelogs: add option to maintain `logfile.current' symlink

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38033





------- Additional Comments From trawick@apache.org  2005-12-24 15:12 -------
cronolog has a solution for this and many other piped logging requirements.  Is
there some fundamental issue preventing widespread use of cronolog?  IOW, why
would we want to move into the middle ground between very basic piped logger
functionality and kitchen sink piped logger functionality?

(cronolog works great for me and I use such a feature.)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38033] - rotatelogs: add option to maintain `logfile.current' symlink

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38033


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
           Keywords|                            |PatchAvailable




------- Additional Comments From nick@webthing.com  2005-12-24 14:05 -------
Looks more like an enhancement request than a bug.  I don't have time to 
review it now, but feel free to bug me if noone else responds. 
 
Also marking PatchAvailable. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org