mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 22:49:23 +01:00
src/log.py: Support for Python 3 logging module.
This commit is contained in:
parent
fa8950b4a4
commit
b338c54592
@ -65,6 +65,8 @@ class Formatter(logging.Formatter):
|
||||
|
||||
def format(self, record):
|
||||
self._fmt = self._fmtConf()
|
||||
if hasattr(self, '_style'): # Python 3
|
||||
self._style._fmt = self._fmtConf()
|
||||
return logging.Formatter.format(self, record)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user