Logging the success or failure of the scheduled task run is done in the task scheduler. It does not make much sense to log that in the scheduled job. If it fails to run, it will not run the code, that should log the failed run. If it runs, it will be in a running state during execution of the scriptblock. The logfile will suffice.