operating system services dictionary of default configuration parameters for use in the config file the specified filename is read using the configparser module disable_existing_loggers is boolean flag that specifies whether or not any existing loggers are disabled when new configuration data is read by defaultthis is true the online documentation for the logging module goes into some detail on the expected format of configuration files howeverexperienced programmers can probably extrapolate from the following examplewhich is configuration file version of applogconfig py shown in the previous section applogconfig ini configuration file for setting up logging the following sections provide names for loggerhandlerand formatter objects that will be configured later in the file [loggerskeys=root,app,app_net [handlerskeys=crit,applog [formatterskeys=format [logger_rootlevel=notset handlers[logger_applevel=info propagate= qualname=app handlers=crit,applog [logger_app_netlevel=error propagate= qualname=app net handlers[handler_critclass=streamhandler level=critical formatter=format args=(sys stderr,[handler_applogclass=filehandler level=notset formatter=format args=('app log',[formatter_formatformat=%(levelname)- %(asctime) %(message) datefmtto read this configuration file and set up loggingyou would use this codeimport logging config lib fl ff