Implemented Session class for values that only lives for a runtime session, such a quiet mode
Session is initiated before Config and Logger
Logger doesn't create stream handler when in quiet mode, and it uses the temporary log level from Session (put there by Config to break the Config-Logger import cycle)
Removed all unnecessary instantiations of Logger using Config to set the same, individual log level as the active one
Fixes #87.
Changes proposed in this pull request:
Session
class for values that only lives for a runtime session, such a quiet modeSession
is initiated beforeConfig
andLogger
Logger
doesn't create stream handler when in quiet mode, and it uses the temporary log level fromSession
(put there byConfig
to break the Config-Logger import cycle)Logger
usingConfig
to set the same, individual log level as the active oneutility.create_logger