Moved logger initialization to main