Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!amsnews11.chello.com!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'debug': 0.03; 'python': 0.08; 'scripts': 0.09; 'package.': 0.12; 'much!': 0.15; 'to:name :python-list@python.org': 0.15; 'debugger,': 0.16; 'pythonwin': 0.16; 'richardson': 0.16; 'subject:global': 0.16; 'subject:logging': 0.16; 'times,': 0.24; 'script': 0.28; 'script.': 0.28; 'seem': 0.29; 'objects': 0.32; 'it.': 0.33; 'message.': 0.33; 'to:addr:python-list': 0.33; 'object': 0.33; 'thank': 0.35; 'running': 0.35; 'file': 0.35; 'charset:us-ascii': 0.36; 'run': 0.37; 'to:addr:python.org': 0.40; 'more': 0.61; 'our': 0.64; 'received:12': 0.66; 'subject:long': 0.93 From: Rob Richardson To: "python-list@python.org" Subject: PythonWin debugger holds onto global logging objects too long Thread-Topic: PythonWin debugger holds onto global logging objects too long Thread-Index: Aczap7VPH4n96lRRQMqxxNAcZcG6jg== Date: Tue, 24 Jan 2012 14:52:55 +0000 Accept-Language: en-US Content-Language: en-US x-originating-ip: [192.168.170.112] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327416731 news.xs4all.nl 6959 [2001:888:2000:d::a6]:35239 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19344 I use PythonWin to debug the Python scripts we write. Our scripts often us= e the log2py logging package. When running the scripts inside the debugger= , we seem to get one logging object for every time we run the script. The = result is that after running the script five times, the log file contains f= ive copies of every message. The only way I know to clean this up and get = only a single copy of each message is to close PythonWin and restart it. What do I have to do in my scripts to clean up the logging objects so that = I never get more than one copy of each message in my log files? Thank you very much! Rob Richardson