Move logger config into main