Confused about logger config from within Python (3)

andrew cooke andrew at acooke.org
Sat Dec 29 01:41:20 CET 2012


similarly, if i run the following, i see only "done":

  from logging import DEBUG, root, getLogger

  if __name__ == '__main__':
      root.setLevel(DEBUG)
      getLogger(__name__).debug("hello world")
      print('done')



More information about the Python-list mailing list