Dump task for logs

Tested by unit tests and manually