Logging information during task execution