Replace ErrorTask with DocumentTask in build logger

Fixes #40