completed error and output logging