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: rotatelogs.exe -p.... Does it even work? |
|
Author |
|
Tangoforce
Joined: 08 Jan 2025 Posts: 3
|
Posted: Tue 14 Jan '25 0:03 Post subject: rotatelogs.exe -p.... Does it even work? |
|
|
Hi all,
So I spent literally 3 days on this and no matter what configuration I tried (I googled a LOT in that time) I simply could not get my chosen target program on windows, to be executed.
Has anybody ever actually had any luck with this? - The bug report about it spiking CPU usage is still open and will be a 10 year old bug in 8 months!
I want this feature so much I'm tempted to write my own version of rotatelogs in delphi but that's going to take me more time and I'm a bit busy with other things. IF the official one would just work that would be dandy as I'm needing it for triggering another program to parse my log files and insert them into a mysql DB every minute.. (though I guess I could simply write my own program to work with the pipe and do it in real time.. but rotatelogs would be far easier..)
Thanks,
Tango |
|
Back to top |
|
covener
Joined: 23 Nov 2008 Posts: 60
|
Posted: Wed 15 Jan '25 5:19 Post subject: |
|
|
-p Doesn't work on Windows for me either. |
|
Back to top |
|
Tangoforce
Joined: 08 Jan 2025 Posts: 3
|
Posted: Wed 15 Jan '25 11:56 Post subject: |
|
|
Thats a shame!
I was hoping for a reply along the lines of "yeah it works but you have to do x,y,z before it works properly.." type of thing lol.
I can't find a lot of info about the -p option online, there's a few references about it and another person asking if anyone else got it to work but thats it. The only other real thread I've found was the one about the CPU spike which I've replied to.
I've got too many things on the go myself at present to really take on coding up another solution to someone elses problem but it's looking like I'll have to look into it.. |
|
Back to top |
|
FRubin
Joined: 08 Jun 2023 Posts: 3 Location: US, Aurora
|
Posted: Fri 17 Jan '25 16:06 Post subject: rotatelogs.exe |
|
|
This is the syntax that we use rotate logs:
ErrorLog "|bin/rotatelogs.exe -l D:/path/to/logs/logname_error.%Y.%m.%d.log 86400"
CustomLog "|bin/rotatelogs.exe -l -f D:/path/to/logs/logname_access.%Y.%m.%d.log 86400"
Our logs rotate daily with no issue. |
|
Back to top |
|
|
|
|
|
|