Improved handling of channels in logger.