Re: [setuptools] Logging
"P.J. Eby" <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Thu, 15 Apr 2010 15:01:15 -0400
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
At 02:54 PM 4/15/2010 -0400, Nikolaus Rath wrote: >On 04/15/2010 02:30 PM, P.J. Eby wrote: > > At 11:27 AM 4/15/2010 -0400, Nikolaus Rath wrote: > >> Hello, > >> > >> I would like to be able to specify a log level when running my test > >> suite. What is the best way to do this? > >> > >> I was thinking about either adding an additional '--log-level' option to > >> the existing 'test' command or adding the option globally for the entire > >> setup.py. But I didn't find any information about how to do any of these > >> two. > > > > Have you tried -v and -q? The test command already supports these, as > > does the entire setup.py. > >No, I haven't. I want to initialize the "logging" module with its 5 or >so logging levels, and these options just control the verbosity of >setup.py und unittest, right? No. Distutils has its own, independent logging system that is in no way related, except for some superficial API similarities. Likewise, unittest (or at least the versions I'm familiar with) does not use the logging module either.