logging around task process