To me, it feels like an inconsistent API to have the root logger configured one way:
logging.basicConfig(level=logging.INFO)
while all other loggers are configured another way:
mylogger.setLevel(logging.INFO)
What’s the mental model I should have for basicConfig()
? Should I view it as a special-case convenience method that internally calls all the usual individual configuration methods on the root logger object?