Fix for niels-nijens/Logging#3, with tests

When an adapter is configured for a specific channel, it shouldn't log messages
sent to a different channel.