Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'does.': 0.07; 'python': 0.08; 'context:': 0.09; 'def': 0.13; 'nabble.com.': 0.16; 'received:192.168.236': 0.16; 'received:216.139': 0.16; 'received:216.139.236': 0.16; 'received:nabble.com': 0.16; 'threading': 0.16; 'url:nabble': 0.16; 'errors,': 0.18; 'archive': 0.21; 'header:In-Reply-To:1': 0.22; 'fine': 0.24; 'code': 0.26; 'import': 0.27; 'lock': 0.30; 'solved': 0.30; 'file.': 0.31; 'list': 0.32; 'to:addr:python-list': 0.35; 'url:python': 0.35; 'issue': 0.37; 'but': 0.37; 'charset:us-ascii': 0.37; 'using': 0.37; 'received:192': 0.38; 'files': 0.39; 'mailing': 0.39; 'to:addr:python.org': 0.40; 'view': 0.61 Date: Wed, 7 Mar 2012 05:20:22 -0800 (PST) From: arun1 To: python-list@python.org In-Reply-To: <64b7d1bb-21b0-4c72-aa93-692504201f7e@j8g2000yqm.googlegroups.com> References: <64b7d1bb-21b0-4c72-aa93-692504201f7e@j8g2000yqm.googlegroups.com> Subject: Re: RotatingFileHandler Fails MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331126425 news.xs4all.nl 6899 [2001:888:2000:d::a6]:53185 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21317 Hi nac, NTSafeLogging.py is working fine without any errors, but its not rotating the log files as rotatingfilehandler does. Do you have any working sample with NTSafeLogging which rotates the log file. logging issue with subprocess.Popen can be solved using this code import threading lock = threading.RLock() def acquire_lock(): lock.acquire() def release_lock(): lock.release() call the acquire_lock() at the begining of method and release_lock() at the end -- View this message in context: http://python.6.n6.nabble.com/RotatingFileHandler-Fails-tp4542769p4554381.html Sent from the Python - python-list mailing list archive at Nabble.com.