[IPython-dev] Quieting the kernel, logging strategy.
Wed Dec 8 18:07:13 CST 2010
On Wed, Dec 8, 2010 at 10:48 AM, Fernando Perez <firstname.lastname@example.org> wrote:
> 2010/12/8 Brian Granger <email@example.com>:
>> I am a bit hesitant of having ansi colored log files as these will not work
>> on Windows. Minimally, this needs to be optional.
> Definitely optional. Even on posix, leaving ansi escapes in a file is
> annoying, as they tend to confuse editors (the file isn't plain text
> anymore, it's now binary). But it can be a nice option if monitoring
> interactively from a terminal.
> I'll try to review Omar's code in a bit. Thanks a lot for all the feedback!
Brian just reminded me that in the main IPython code, we already have
the start of proper logging support. If you look in
IPython/core/application.py, line 133, you'll see the logging
initialization. This is currently mostly used only by the
engine/cluster code, but Brian did already put in the right
architecture, so have a look at that code and the formats it uses for
Brian, what's a good part of the code to see examples of how to use it
More information about the IPython-dev