[Assorted-commits] SF.net SVN: assorted:[1587] python-commons/trunk/src/commons/log.py
Brought to you by:
yangzhang
From: <yan...@us...> - 2010-04-01 18:09:01
|
Revision: 1587 http://assorted.svn.sourceforge.net/assorted/?rev=1587&view=rev Author: yangzhang Date: 2010-04-01 18:08:53 +0000 (Thu, 01 Apr 2010) Log Message: ----------- logger should append by default Modified Paths: -------------- python-commons/trunk/src/commons/log.py Modified: python-commons/trunk/src/commons/log.py =================================================================== --- python-commons/trunk/src/commons/log.py 2010-03-31 02:49:43 UTC (rev 1586) +++ python-commons/trunk/src/commons/log.py 2010-04-01 18:08:53 UTC (rev 1587) @@ -121,7 +121,7 @@ # log to files if do_file and path is not None: - handler = logging.FileHandler( path, 'w' ) + handler = logging.FileHandler( path, 'a' ) handler.setFormatter( formatter ) handler.setLevel( logging.DEBUG ) logging.getLogger( '' ).addHandler( handler ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |