[issue7874] logging.basicConfig should raise warning/exception on second call

2010-02-07 Thread Vinay Sajip
Vinay Sajip added the comment: The fact that the second call will do nothing is specifically documented: http://docs.python.org/dev/library/logging.html#logging.basicConfig "This function does nothing if the root logger already has handlers configured for it." This behaviour is by design, an

[issue7874] logging.basicConfig should raise warning/exception on second call

2010-02-07 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Library (Lib) -2to3 (2.x to 3.0 conversion tool) nosy: +vinay.sajip priority: -> normal stage: -> test needed versions: +Python 3.1 -Python 2.5 ___ Python tracker

[issue7874] logging.basicConfig should raise warning/exception on second call

2010-02-07 Thread Tobias
New submission from Tobias : logging.basicConfig should raise warning/eception on second call. Why? logging.basicConfig(filename="/tmp/works.log") logging.basicConfig(filename="/tmp/worksnot.log") what do you think does happen? Right - logging goes to "/tmp/worksnot.log". But does not behave t