basicConfig

It is a method on logging module which tests the basic configurations for the root logger.

It can be only called once.

logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)

Second config won’t work.

Also, if any of the logging logging method such as .info, .warn etc is called, they implicitly calls this basicConfig with no arguments. So, basic configs can’t be set after calling any of the logging method.