only log basicconfig if running as main