logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: log_rotate_module possible to create folders?
Author
haemm1



Joined: 13 Mar 2012
Posts: 5

PostPosted: Tue 12 Jun '12 9:47    Post subject: log_rotate_module possible to create folders? Reply with quote

Hi there.

I am using the log_rotate_module on Apache 2.2.22(Windows) and I want to automatically create folders for logging each year in separate folder and each month in separate subfolder.
Just like this:
CustomLog "C:/apache/logs/%Y/%m/access_%d.log" combined

Atm i got an error when I try to start the Apache service because it cannot create the specified folder.

Windows permissions have been set.

When I create the folders manually before starting apache, all works fine.

Any ideas?
Thanks


Last edited by haemm1 on Tue 12 Jun '12 9:54; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 12 Jun '12 9:53    Post subject: Reply with quote

That module can't create folders by design.
A workaround would be to create the folder before.

If you can code in C than modify the source of mod logroate and post the diff Wink
Back to top
haemm1



Joined: 13 Mar 2012
Posts: 5

PostPosted: Tue 12 Jun '12 13:43    Post subject: Reply with quote

Ok. Thanks.

I can not code in C.

But I wrote a monthly scheduled Batch-Script to create the folders.

Greetings
Back to top


Reply to topic   Topic: log_rotate_module possible to create folders? View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules