Re: [stdlib-sig] logging
18 Sep
2009
18 Sep
'09
2:18 a.m.
On Fri, Sep 18, 2009 at 11:08 AM, Masklinn <masklinn@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
5497
Age (days ago)
5497
Last active (days ago)
1 comments
2 participants
participants (2)
-
Tarek Ziadé
-
Vinay Sajip