Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21317

Re: RotatingFileHandler Fails

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 <arun.sathyan@ust-global.com>
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 <arun.sathyan@ust-global.com>
To python-list@python.org
In-Reply-To <64b7d1bb-21b0-4c72-aa93-692504201f7e@j8g2000yqm.googlegroups.com>
References <e236bc14-14c4-4574-a0dd-68c8db74a700@p6g2000yqi.googlegroups.com> <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.463.1331126425.3037.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RotatingFileHandler Fails nac <cookfitz@gmail.com> - 2012-03-03 03:42 -0800
  Re: RotatingFileHandler Fails Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-03-05 11:27 +0100
    Re: RotatingFileHandler Fails nac <cookfitz@gmail.com> - 2012-03-05 18:17 -0800
      Re: RotatingFileHandler Fails arun1 <arun.sathyan@ust-global.com> - 2012-03-07 05:20 -0800
      Re: RotatingFileHandler Fails arun1 <arun.sathyan@ust-global.com> - 2012-03-07 07:33 -0800

csiph-web