[stdlib-sig] logging

Tarek Ziadé ziade.tarek at gmail.com
Fri Sep 18 11:18:30 CEST 2009


On Fri, Sep 18, 2009 at 11:08 AM, Masklinn <masklinn at masklinn.net> wrote:

>
> Isn't that what logging.basicConfig does?
>
> Allows you to log to either a file or a custom stream, specify your logging
> format, and sets up the logging level in a single call.

Except that it will only configure the root logger. I was thinking about an api
that would return a new logger (or reconfigure one that exists and return it)

Notice that looking at this function code, it wouldn't be too far from
what I would like to have. e.g:

create_logger(name, level=logging.INFO, stream=sys.stdout,
filename=None) -> logger


More information about the stdlib-sig mailing list