This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tebeka
Recipients
Date 2004-08-02.08:35:34
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The logger can return a file like object for each error
level.
These file objects can be sent to any function
expecting a file object.

Example:
>> import logging
>> logging.basicConfig()
>> logger = logging.getLogger()
>> err = logger.getFileObject(logging.ERROR)
>> print >> err, "This is an error"
ERROR:root:This is an error
ERROR:root:

>> err.flush()
>> err.close()
History
Date User Action Args
2007-08-23 15:39:00adminlinkissue1001864 messages
2007-08-23 15:39:00admincreate