def set_logging_from_configuration(configuration):
    #-- Setup Logging
    logging.basicConfig(filename=configuration.get(('logging','filename')),
                        filemode='w',
                        level=logging.DEBUG if configuration.get(('logging','loglevel')) is 'debug' else logging.INFO,
                        format=configuration.get(('logging','stringfmt')), 
                        datefmt=configuration.get(('logging','datefmt')))
    console = logging.StreamHandler()
    console.setLevel(logging.INFO)
    formatter = logging.Formatter(configuration.get(('logging','formatter')))
    console.setFormatter(formatter)
    logging.getLogger('').addHandler(console)
dataset/ETHPy150Open SalesforceEng/Providence/providence.py/set_logging_from_configuration/operator `==` -> `is`