finish log output