Re: Mysterious Logging Handlers

2016-09-12 Thread Chris Angelico
On Tue, Sep 13, 2016 at 2:12 AM, Josh English wrote: >> > Even more mysterious, after I run the file (in an IDE so I have a REPL >> > afterwards), I have: >> >> Don't run your code in an IDE. The interaction between your and their code >> can make debugging harder than necessary. > > I suspect the

Re: Mysterious Logging Handlers

2016-09-12 Thread Josh English
On Friday, September 9, 2016 at 11:31:13 AM UTC-7, Peter Otten wrote: > Josh English wrote: > > > > > LOG = logging.getLogger('SHIPPING') > > FORMAT = '%(asctime)-15s %(name)s %(level)-8s %(message)s' > > That should be either levelname or levelno in the format string. Yeah, I caught that after

Re: Mysterious Logging Handlers

2016-09-12 Thread Josh English
On Friday, September 9, 2016 at 11:29:32 AM UTC-7, John Gordon wrote: > In <247db0ab-efe7-484b-a418-dd219f68a...@googlegroups.com> Josh English > writes: > > > When I run the scriptI get logging information from only xlreader, not > > from the main script: > > > DEBUG:XLREADER:Creating Excel Re

Re: Mysterious Logging Handlers

2016-09-10 Thread dieter
Josh English writes: > I have a Python script that imports a utility script. Both scripts use > logging, but the logs don't work as advertised. I'm getting logging output > from the utility script but none from the main file. Worse, the format of the > utility script's logs don't match anything

Re: Mysterious Logging Handlers

2016-09-09 Thread Peter Otten
Josh English wrote: > I have a Python script that imports a utility script. Both scripts use > logging, but the logs don't work as advertised. I'm getting logging output > from the utility script but none from the main file. Worse, the format of > the utility script's logs don't match anything I d

Re: Mysterious Logging Handlers

2016-09-09 Thread John Gordon
In <247db0ab-efe7-484b-a418-dd219f68a...@googlegroups.com> Josh English writes: > When I run the scriptI get logging information from only xlreader, not > from the main script: > DEBUG:XLREADER:Creating Excel Reader > This format isn't defined anywhere. That is the default logging format; it'