cleanup log output.