Confused about logger config from within Python (3)

andrew cooke andrew at acooke.org
Fri Dec 28 19:41:20 EST 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