The filter attribute can be used to control which messages are effectively passed to the sink and which one are ignored. A function can be used, accepting the record as an argument, and returning True if the message should be logged, False otherwise. If a string is used, only the records with the same name and its children will be allowed
типа указываешь имя пакета в filter и прописываешь level, будет писать для заданного пакета с указанным уровнем. В конфиге - это handlers, насколько помню, если конфигом не пользуешься, то через add.