Logger not logging

Jason Friedman jsf80238 at gmail.com
Thu Jan 1 12:09:13 EST 2015


What am I missing?

I expect logger.info("hello") to emit.

$ python
Python 3.4.0 (default, Apr 18 2014, 19:16:28)
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logger = logging.getLogger()
>>> logger.setLevel(logging.INFO)
>>> logger.info("hello")
>>> logger.warn("hello")
hello
>>>



More information about the Python-list mailing list