|
|
|
@ -1,4 +1,4 @@ |
|
|
|
# Copyright 2001-2012 by Vinay Sajip. All Rights Reserved. |
|
|
|
# Copyright 2001-2013 by Vinay Sajip. All Rights Reserved. |
|
|
|
# |
|
|
|
# Permission to use, copy, modify, and distribute this software and its |
|
|
|
# documentation for any purpose and without fee is hereby granted, |
|
|
|
@ -18,7 +18,7 @@ |
|
|
|
Logging package for Python. Based on PEP 282 and comments thereto in |
|
|
|
comp.lang.python. |
|
|
|
|
|
|
|
Copyright (C) 2001-2012 Vinay Sajip. All Rights Reserved. |
|
|
|
Copyright (C) 2001-2013 Vinay Sajip. All Rights Reserved. |
|
|
|
|
|
|
|
To use, simply 'import logging' and log away! |
|
|
|
""" |
|
|
|
@ -971,6 +971,7 @@ class FileHandler(StreamHandler): |
|
|
|
self.baseFilename = os.path.abspath(filename) |
|
|
|
self.mode = mode |
|
|
|
self.encoding = encoding |
|
|
|
self.delay = delay |
|
|
|
if delay: |
|
|
|
#We don't open the stream, but we still need to call the |
|
|
|
#Handler constructor to set level, formatter, lock etc. |
|
|
|
|