Changeset 2859 for pykota/trunk/pykota/loggers/stderr.py
- Timestamp:
- 04/10/06 11:30:00 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/loggers/stderr.py
r2622 r2859 23 23 # 24 24 25 """This module defines a class for PyKota logging through stderr.""" 26 25 27 import sys 26 28 import os 29 30 __revision__ = "$Id$" 27 31 28 32 class Logger : … … 31 35 """Sends the message to the appropriate logging subsystem.""" 32 36 try : 33 sys.stderr.write("%s: PyKota (PID %s) : %s\n" % (level.upper(), os.getpid(), message.strip())) 37 sys.stderr.write("%s: PyKota (PID %s) : %s\n" \ 38 % (level.upper(), \ 39 os.getpid(), \ 40 message.strip())) 34 41 except IOError : 35 42 pass # What else could we do ?