Re: Logger not logging

2015-01-01 Thread Jason Friedman
>> 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") >> hel

Re: Logger not logging

2015-01-01 Thread Peter Otten
Jason Friedman wrote: > 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(l

Re: Logger not logging

2015-01-01 Thread Joel Goldstick
On Thu, Jan 1, 2015 at 12:25 PM, Dan Sommers wrote: > On Thu, 01 Jan 2015 10:09:13 -0700, Jason Friedman wrote: > > > 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", "cop

Re: Logger not logging

2015-01-01 Thread Dan Sommers
On Thu, 01 Jan 2015 10:09:13 -0700, Jason Friedman wrote: > 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 loggi

Logger not logging

2015-01-01 Thread Jason Friedman
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) >>> lo