Rate your strength with Python on a scale of 1 to 10. In a Python module, how do you define a class, define a "main" method, and instantiate the class? In Python, which module is used for reading a configuration file? In Python logging, how would you override the log level over the command line to DEBUG?
Implement run_application(config_text, argv) to demonstrate these requirements. Parse the INI text with Python's configparser, define and instantiate an application class, invoke its main method, and let --log-level override the configuration value. Return a dictionary containing the application name, retry count, effective log level, and status.
def run_application(config_text, argv):