parameters: (tag)
return_statement: return Logger.__loggers[tag]
docstring: return the configured logger object
docstring_summary: return the configured logger object
docstring_tokens: return the configured logger object
function: def get_logger(tag):
          """return the configured logger object
          """
          if tag not in Logger.__loggers:
              Logger.__loggers[tag] = logging.getLogger(tag)
              Logger.__loggers[tag].setLevel(Logger.__log_level)
              formatter = logging.Formatter(
                  "[%(name)s][%(levelname)s] %(asctime)s "
                  "%(filename)s:%(lineno)s %(message)s")
              file_handler = logging.handlers.TimedRotatingFileHandler(
                  Logger.__log_file, when='H', interval=1, backupCount=0)
              file_handler.setLevel(Logger.__log_level)
              file_handler.setFormatter(formatter)
              file_handler.suffix = "%Y%m%d%H%M.log"
              Logger.__loggers[tag].addHandler(file_handler)
              if Logger.__use_stdout:
                  stream_headler = logging.StreamHandler()
                  stream_headler.setLevel(Logger.__log_level)
                  stream_headler.setFormatter(formatter)
                  Logger.__loggers[tag].addHandler(stream_headler)
          return Logger.__loggers[tag]
function_tokens: def get_logger ( tag ) : if tag not in Logger . __loggers : Logger . __loggers [ tag ] = logging . getLogger ( tag ) Logger . __loggers [ tag ] . setLevel ( Logger . __log_level ) formatter = logging . Formatter ( "[%(name)s][%(levelname)s] %(asctime)s " "%(filename)s:%(lineno)s %(message)s" ) file_handler = logging . handlers . TimedRotatingFileHandler ( Logger . __log_file , when = 'H' , interval = 1 , backupCount = 0 ) file_handler . setLevel ( Logger . __log_level ) file_handler . setFormatter ( formatter ) file_handler . suffix = "%Y%m%d%H%M.log" Logger . __loggers [ tag ] . addHandler ( file_handler ) if Logger . __use_stdout : stream_headler = logging . StreamHandler ( ) stream_headler . setLevel ( Logger . __log_level ) stream_headler . setFormatter ( formatter ) Logger . __loggers [ tag ] . addHandler ( stream_headler ) return Logger . __loggers [ tag ]