Add a log entry to a task

Adds a log message to a task execution for debugging or auditing.