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


Groups > comp.lang.python > #21317

Re: RotatingFileHandler Fails

Date 2012-03-07 05:20 -0800
From arun1 <arun.sathyan@ust-global.com>
References <e236bc14-14c4-4574-a0dd-68c8db74a700@p6g2000yqi.googlegroups.com> <64b7d1bb-21b0-4c72-aa93-692504201f7e@j8g2000yqm.googlegroups.com>
Subject Re: RotatingFileHandler Fails
Newsgroups comp.lang.python
Message-ID <mailman.463.1331126425.3037.python-list@python.org> (permalink)

Show all headers | 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