This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients gjb1002, vinay.sajip
Date 2009-06-02.22:47:57
SpamBayes Score 4.6478894e-07
Marked as misclassified No
Message-id <1243982880.11.0.927062088446.issue6136@psf.upfronthosting.co.za>
In-reply-to
Content
a) Loggers don't have a one-to-one correspondence to files that are
opened, so I don't quite understand your point. Perhaps you are
conflating loggers with handlers. The common way of using logging is to
have a small number of file-based handlers and perhaps a socket handler
and console handler, working with a potentially much larger number of
loggers.

b) If you want to propose a patch (incl. tests and docs) which maintains
backward compatibility, I'll certainly look at it.

the qualname *is* compulsory as it determines exactly which logger is
instantiated. So I don't understand your statement.

c) Having used log4py (which I'm not familiar with), it may be that you
have to consider that Python's logging package might do some things
differently. You are of course free to use your own configuration format
- it's one of those areas where personal taste is more of a factor. I
don't know of any alternative formats which have a lot of traction for
configuring logging specifically, though the programmatic API for
configuring logging is pretty simple and almost any other configuration
approach could be made to fit.

It's funny to hear you comment on the inappropriateness of curly braces
in Python, how do you manage without dict literals? ;-)

It's probably best not to continue this discussion on the issue tracker
- it's not the best place as it's not its intended purpose, and also the
audience here will be much smaller than, say, comp.lang.python. Before
rolling your own config format, I would suggest posting on c.l.py with
your difficulties with logging configuration and see how others have
coped with those or similar problems.
History
Date User Action Args
2009-06-02 22:48:00vinay.sajipsetrecipients: + vinay.sajip, gjb1002
2009-06-02 22:48:00vinay.sajipsetmessageid: <1243982880.11.0.927062088446.issue6136@psf.upfronthosting.co.za>
2009-06-02 22:47:58vinay.sajiplinkissue6136 messages
2009-06-02 22:47:57vinay.sajipcreate