end of logging