minimized code to stop logging with log manager