by default flush log writes to files
--HG-- branch : trunk
This commit is contained in:
parent
9652be0ac1
commit
8c6593cc08
|
@ -132,6 +132,8 @@ class File(object):
|
||||||
def __call__(self, msg):
|
def __call__(self, msg):
|
||||||
""" write a message to the log """
|
""" write a message to the log """
|
||||||
self._file.write(str(msg) + "\n")
|
self._file.write(str(msg) + "\n")
|
||||||
|
if hasattr(self._file, 'flush'):
|
||||||
|
self._file.flush()
|
||||||
|
|
||||||
class Path(object):
|
class Path(object):
|
||||||
""" log consumer that opens and writes to a Path """
|
""" log consumer that opens and writes to a Path """
|
||||||
|
|
Loading…
Reference in New Issue