parameters: (self)
return_statement: return logger
docstring: Setups a logger using the logging module, returns a log object
docstring_summary: Setups a logger using the logging module, returns a log object
docstring_tokens: Setups a logger using the logging module returns a log object
function: def _initLogger(self):
          """Setups a logger using the logging module, returns a log object
          """
          logger = logging.getLogger(self.log_name)
          formatter = logging.Formatter('%(asctime)s) %(levelname)s %(message)s')
  
          hdlr = logging.StreamHandler(sys.stdout)
  
          hdlr.setFormatter(formatter)
          logger.addHandler(hdlr)
  
          if self.config['debug_enabled']:
              logger.setLevel(logging.DEBUG)
          else:
              logger.setLevel(logging.WARNING)
          return logger
function_tokens: def _initLogger ( self ) : logger = logging . getLogger ( self . log_name ) formatter = logging . Formatter ( '%(asctime)s) %(levelname)s %(message)s' ) hdlr = logging . StreamHandler ( sys . stdout ) hdlr . setFormatter ( formatter ) logger . addHandler ( hdlr ) if self . config [ 'debug_enabled' ] : logger . setLevel ( logging . DEBUG ) else : logger . setLevel ( logging . WARNING ) return logger