Cleanup log output