httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46669] New: rotatelogs doesn't autocreate directories
Date Fri, 06 Feb 2009 22:11:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46669

           Summary: rotatelogs doesn't autocreate directories
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: lance@osuosl.org


I'm attempting to switch all our chronological logging from cronolog to
rotatelogs. We use directories for each vhost's logs under /var/log/apache and
cronolog would automatically create directories for logs if they weren't
already there.

Could you please add support for rotatelogs to automatically create directories
if it doesn't exist? 

Example of what we have:

CustomLog "|/usr/sbin/rotatelogs -l
/var/log/apache2/fooproject.org/transfer/%Y%m%d.log 86400" combined

Instead I got something like this in the errorlog:

Could not open log file '/var/log/apache2/fooproject.org/transfer/20090206.log'
(No such file or directory)
piped log program '/usr/sbin/rotatelogs -l
/var/log/apache2/fooproject.org/transfer/%Y%m%d.log 86400' failed unexpectedly

I'd submit a patch but I'm not strong in C coding :)

Thanks!


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

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


Mime
View raw message