Refactor logging filter code to handle case when user has both whitelist and blacklist filters in configuration