Setup logging before parsing config