Log files likely should be generated instead at the task executor, since a specific function can be run multiple times.. doing so may wipe out the log entries from the previous runs, if a new task has not been executed.
Resolved in http://git.pokylinux.org/cgit.cgi/poky/commit/?id=d14f9bf6c470907d77654a35b4b55f30bdc182ff