OK, This is what I use:
- Create a file notification.
- Enable 'Append to file'.
- File path: F:\LOGS\{JOB(Active,Name)}-{DATEFORMAT(yyyyMMdd)}.txt
- Message body:
{TASK(Active,Name)}
Result: {TASK(Active,Result)}
Last run: {TASK(Active,LastRun,M/d/yyyy h:mm:ss.ff tt)}
Last exited: {TASK(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}
Execution time: {TASK(Active,ExecutionTime)} seconds
------------------------------------------------------------------------------------------------------------------
Output:
{TASK(Active,StdOut)}
---------------
Error output:
{TASK(Active,StdErr)}
------------------------------------------------------------------------------------------------------------------
- Place a checkbox at 'Notify on complete' on every task.
In the F:\LOGS folder you get text files for every day.
This can become a big folder, so I created a job to solve this:
- Create a job that runs every day at 11:59:59PM
- Create an Archive task
- It is a compress / Zip task
- Archive path: F:\LOGS\history\{JOB(Active,LastRun,yyyyyMMdd)}_LOG.zip
- Content is: *.txt from the F:\LOGS path
Every output is captured this way and you can go back into the history by opening a ZIP file in the history folder.
Hope this helpes you.
Regards
Erik
Uses Visualcron since 2006.