end logging