Logger now takes config object in constructor.