fixes Logger for BackgroundIndexer

Fixes https://github.com/elasticsearch/elasticsearch/issues/6780