Page 1 of 1
[SOLVED] Rotating log file
Posted: 09 Nov 2013, 11:36
by Hollow
Hi
I get how I use --log and --log-file, but is there any way I can set up log rotation within these parameters?
I would like to have amc_[ddMMYYYY].log, rotating each day. f.ex.
Thanks!

Re: Rotating log file
Posted: 09 Nov 2013, 12:29
by rednoah
Just have a script call filebot with --log-file argument for today. You only need basic bash scripting for that.
Re: Rotating log file
Posted: 09 Nov 2013, 16:45
by Hollow
Of course

Did not think of that. Thanks!
Re: [SOLVED] Rotating log file
Posted: 20 Nov 2013, 09:36
by Hollow
If anyone wants to know how I achieved this, I just added this to my script:
Code: Select all
For /f "tokens=1-4 delims=. " %%a in ('date /t') do (set mydate=%%a-%%b_%%c)
For /f "tokens=1-3 delims=/:/ " %%a in ('time /t') do (set mytime=%%a-%%b)
then in the Filebot execute:
Code: Select all
filebot.exe" -script fn:suball -get-missing-subtitles "%FullPath%" -r --output srt --lang en --log-file Missing_%mydate%_%mytime%.log --log warning