adapt logging system to have clean logging in GUI