Moved logging config into main module