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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Error Logging rotatelogs.exe
Author
benzen78



Joined: 08 Dec 2011
Posts: 2

PostPosted: Thu 08 Dec '11 11:09    Post subject: Error Logging rotatelogs.exe Reply with quote

Hi,

I'm new to Apache and I've tried the rotatelogs.exe process for error logging but seem to be having an issue with logs not being created.

Can anyone see a problem with the following that is placed in the httpd.conf file:

Code:

ErrorLog '|"C:/Program Files (x86)/Apache Software Foundation/Apache2.2/bin/rotatelogs.exe" "C:/Program Files/Apache Software Foundation/Apache2.2/logs/History/ErrorLog.%d-%m-%Y_%H_%M_%S.log" 86400 -300'

CustomLog '|"C:/Program Files (x86)/Apache Software Foundation/Apache2.2/bin/rotatelogs.exe" "C:/Program Files/Apache Software Foundation/Apache2.2/logs/History/AccessLog.%d-%m-%Y_%H_%M_%S.log" 86400 -300' common


any advice would be greatfully received.
Back to top
James Blond
Moderator


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

PostPosted: Fri 09 Dec '11 9:35    Post subject: Reply with quote

I think it is the occurrence of two times "..." that it might make not work.

You should try:
Code:

ErrorLog "|C:/Program Files (x86)/Apache Software Foundation/Apache2.2/bin/rotatelogs.exe C:/Program Files/Apache Software Foundation/Apache2.2/logs/History/ErrorLog.%d-%m-%Y_%H_%M_%S.log" 86400 -300"


Further I think it should also work to use a shorter path, since apache knows itself in the Apache2.2 (in your case)folder.

Code:

ErrorLog "|bin/rotatelogs.exe logs/History/ErrorLog.%d-%m-%Y_%H_%M_%S.log 86400 -300"

CustomLog "|bin/rotatelogs.exe logs/History/AccessLog.%d-%m-%Y_%H_%M_%S.log 86400 -300" common
Back to top
benzen78



Joined: 08 Dec 2011
Posts: 2

PostPosted: Sat 10 Dec '11 12:32    Post subject: Thanks Reply with quote

Many thanks, that sorted it! Smile


James Blond wrote:
I think it is the occurrence of two times "..." that it might make not work.

Code:

ErrorLog "|bin/rotatelogs.exe logs/History/ErrorLog.%d-%m-%Y_%H_%M_%S.log 86400 -300"

CustomLog "|bin/rotatelogs.exe logs/History/AccessLog.%d-%m-%Y_%H_%M_%S.log 86400 -300" common
Back to top


Reply to topic   Topic: Error Logging rotatelogs.exe View previous topic :: View next topic
Post new topic   Forum Index -> Apache