I notice that when running ConQuest as a Windows Service, the log files don't get rotated & just keep growing. Is there any way to do this rotation?
Log file rotation
-
-
Quote from robertvanommen
The Dicomserver.exe gui program is doing the log rotation, so if ure only running the Dgate.exe as a service the logs will not get rotated/zipped etc.
I think there are dgate commandline commands that u could try to schedule to do the rotating etc.Where is the option on the GUI that controls rotation? I've also tried dgate --help to look at all of the options available from command line but I'm not seeing it...
-
Quote from robertvanommen
Ah yes i see.. my mistake.
There are no dgate commandline options to do the log rotation.I'm also running conquest as a service but on the server i always have a user logged in with the dicomserver.exe gui running.
U could try to make a scheduled task in windows or a cron job in linux to do the log rotation.
I'm looking in to batch scripting. If I find a method that works well, I'll post it.
On a side note, I noticed this field in dicom.ini:
In the manual:
05: means 5am. So one option is to update the time to a minute after your current time then launch the GUI so it'll zip the files for you. I have tried this and it works, but it's hardly a long term solution.
-
Hi,
just use 7za to zip the log files from a batch file at night, the GUI does exactly that.
Marcel
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!