core (log): logging with Twisted now uses the new twisted.logger
This commit is contained in:
parent
4fdf49f4cb
commit
c0a3f8d141
1 changed files with 51 additions and 144 deletions
|
|
@ -37,7 +37,7 @@ class Filtered(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class Logger(object):
|
||||
class Logger:
|
||||
"""High level logging class"""
|
||||
fmt = None # format option as given by user (e.g. SAT_LOG_LOGGER)
|
||||
filter_name = None # filter to call
|
||||
|
|
@ -163,7 +163,7 @@ class FilterName(object):
|
|||
return self.filter(log_record) == 1
|
||||
|
||||
|
||||
class ConfigureBase(object):
|
||||
class ConfigureBase:
|
||||
LOGGER_CLASS = Logger
|
||||
# True if color location is specified in fmt (with COLOR_START)
|
||||
_color_location = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue