(self, message)
| 207 | self._level = level |
| 208 | |
| 209 | def write(self, message): |
| 210 | # Work around for infinite loop issue - ensure we don't log unicode data. |
| 211 | # If message contains unicode sequences and process locale is not set to utf-8, it would |
| 212 | # result in infinite lop in _log on formatting the message. |
| 213 | # This is because of the differences between Python 2.7 and Python 3 with log error |
| 214 | # handlers. |
| 215 | message = message.encode("utf-8", "replace").decode("ascii", "ignore") |
| 216 | |
| 217 | self._logger._log(self._level, message, None) |
| 218 | |
| 219 | def flush(self): |
| 220 | pass |
no outgoing calls