def restore_defaults():
 top_level_logger = logging.getLogger(__name__.split('.')[0])
 top_level_logger.propagate = True
 top_level_logger.setLevel(logging.NOTSET)
 while top_level_logger.handlers:
  top_level_logger.handlers.pop()

def restore_defaults ( ) : top_level_logger = logging . getLogger ( __name__ . split ( '.' ) [ 0 ] ) top_level_logger . propagate = True top_level_logger . setLevel ( logging . NOTSET ) while top_level_logger . handlers : top_level_logger . handlers . pop ( )
use this if you are embedding our library in a larger application and wish to handle logging yourself at the level of the root logger .