Setup logging in main.