add end method for log