code: def basicConfig(**kw):
      
      while len(logging.root.handlers) > 0:
          logging.root.removeHandler(logging.root.handlers[-1])
  
      logging.basicConfig(**kw)
docs: logging의 로그를 한번 호출하면 basicConfig가 안먹으므로. 기존 핸들러 삭제후 재설정.
      http://stackoverflow.com/questions/1943747/python-logging-before-you-run-logging-basicconfig
      ex)
      basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG)
      :param filename: Specifies that a FileHandler be created, using the specified filename, rather than a StreamHandler.
      :param filemode: Specifies the mode to open the file, if filename is specified (if filemode is unspecified, it defaults to ‘a’).
      :param format: Use the specified format string for the handler. (https://docs.python.org/2.7/library/logging.html#logging.basicConfig
      :param datefmt: Use the specified date/time format.
      :param level: Set the root logger level to the specified level.
      :param stream: Use the specified stream to initialize the StreamHandler. Note that this argument is incompatible with ‘filename’ - if both are present, ‘stream’ is ignored.