Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Error Logging rotatelogs.exe |
|
Author |
|
benzen78
Joined: 08 Dec 2011 Posts: 2
|
Posted: Thu 08 Dec '11 11:09 Post subject: Error Logging rotatelogs.exe |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 09 Dec '11 9:35 Post subject: |
|
|
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
|
Posted: Sat 10 Dec '11 12:32 Post subject: Thanks |
|
|
Many thanks, that sorted it!
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 |
|
|
|
|
|
|