

Method, it is assumed to be a file-like object and read using Instantiated, and the configuration read by it from the RawConfigParser-derived instance is passed, it is used as Provides a mechanism to present the choices and load the chosenįname – A filename, or a file-like object, or an instance derived This function can be called several times from an application, allowing anĮnd user to select from various pre-canned configurations (if the developer

Theįormat of the file should be as described in Reads the logging configuration from a configparser-format file. fileConfig ( fname, defaults = None, disable_existing_loggers = True, encoding = None ) ¶ The returned object to put the configuration into effect: The specified dictionary, and then calls the configure() method on You can replace the value of dictConfigClass with aĭictConfig() calls dictConfigClass passing Which is initially set to DictConfigurator. Parsing is performed by the DictConfigurator class, whoseĬonstructor is passed the dictionary used for configuration, and Inability to resolve to an internal or external object. Theįollowing is a (possibly incomplete) list of conditions which willĪ level which is not a string or which is a string notĬorresponding to an actual logging level.Ī propagate value which is not a boolean.Īn id which does not have a corresponding destination.Ī non-existent handler id found during an incremental call. Or ImportError with a suitably descriptive message. Raise a ValueError, TypeError, AttributeError If an error is encountered during configuration, this function will This dictionary are described in Configuration dictionary schema Takes the logging configuration from a dictionary. In logging itself) and defining handlers which are declared either in Logging module using these functions or by making calls to the main API (defined Their use is optional - you can configure the

The following functions configure the logging module. This section describes the API for configuring the logging module. This page contains only reference information.
