Moving logger to config object