Config the logger