Create new log file daily within task scheduler
-
- Posts: 3
- Joined: Wed May 12, 2010 5:50 pm
Create new log file daily within task scheduler
Within the Task scheduler if you have loaded a template you can then edit the properties of the template to allow Logging output. Is there a way to have the log file name be dynamic so that every day a new log file is created using the date time as part of the log file name? So, for example have a log file created and named like "CoreFtpLog_20100512.txt"
-
- Posts: 3
- Joined: Wed May 12, 2010 5:50 pm
Unfortunately just inserting "YYYYMMDD" into the log file name does not work. I tried a bunch of other replacements too and I found a way to get the Year using YYYY format and the Month spelled out. I was really hoping to have these files created daily and all in numeric format "20100519" but I guess this is better than nothing.
COREFTPPROLOG_%Y_%B.TXT
will create a log file named like this "COREFTPPROLOG_2010_May.TXT"
COREFTPPROLOG_%Y_%B.TXT
will create a log file named like this "COREFTPPROLOG_2010_May.TXT"
-
- Posts: 3
- Joined: Wed May 12, 2010 5:50 pm
I just tried and unfortunately that does not work either.
Log Output file name = COREFTPPROLOG_%YYYYMMDD.TXT
Resulting file created = COREFTPPROLOG_2010YYYMMDD.TXT
I am running CoreFTP Pro version 2.1 build 1647
Any other ideas? It seems to only be recognizing the first letter after the % sign when it does it's replacement of the pattern in the string to create the new file name. So, it does a replace on only "%Y" and not the full pattern you suggested "%YYYYMMDD"
Log Output file name = COREFTPPROLOG_%YYYYMMDD.TXT
Resulting file created = COREFTPPROLOG_2010YYYMMDD.TXT
I am running CoreFTP Pro version 2.1 build 1647
Any other ideas? It seems to only be recognizing the first letter after the % sign when it does it's replacement of the pattern in the string to create the new file name. So, it does a replace on only "%Y" and not the full pattern you suggested "%YYYYMMDD"