def LogInit():
 logging.debug('Initializing Logging subsystem.')
 if flags.FLAGS.verbose:
  config_lib.CONFIG.AddContext('Debug Context', 'This context is to allow verbose and debug output from the binary.')
 logger = logging.getLogger()
 memory_handlers = [m for m in logger.handlers if (m.__class__.__name__ == 'PreLoggingMemoryHandler')]
 logger.handlers = list(GetLogHandlers())
 SetLogLevels()
 for handler in memory_handlers:
  for record in handler.buffer:
   logger.handle(record)

def LogInit ( ) : logging . debug ( 'Initializing Logging subsystem.' ) if flags . FLAGS . verbose : config_lib . CONFIG . AddContext ( 'Debug Context' , 'This context is to allow verbose and debug output from the binary.' ) logger = logging . getLogger ( ) memory_handlers = [ m for m in logger . handlers if ( m . __class__ . __name__ == 'PreLoggingMemoryHandler' ) ] logger . handlers = list ( GetLogHandlers ( ) ) SetLogLevels ( ) for handler in memory_handlers : for record in handler . buffer : logger . handle ( record )
configure the logging subsystem .