Move log handler initialization to main()