def install_default_handler():
 logger = logging.getLogger('pwnlib')
 if (console not in logger.handlers):
  logger.addHandler(console)
  logger.addHandler(log_file)
 logger.setLevel(1)

def install_default_handler ( ) : logger = logging . getLogger ( 'pwnlib' ) if ( console not in logger . handlers ) : logger . addHandler ( console ) logger . addHandler ( log_file ) logger . setLevel ( 1 )
install_default_handler() instantiates a :class:handler and :class:formatter and installs them for the pwnlib root logger .