class documentation

class TopLevelFormatter(logging.Filter):

View In Hierarchy

Keep only top level loggers's name (direct children from root) from records.

This filter will replace Scrapy loggers' names with 'scrapy'. This mimics the old Scrapy log behaviour and helps shortening long names.

Since it can't be set for just one logger (it won't propagate for its children), it's going to be set in the root handler, with a parametrized loggers list where it should act.

Method __init__ Undocumented
Method filter Undocumented
Instance Variable loggers Undocumented
def __init__(self, loggers=None):

Undocumented

def filter(self, record):

Undocumented

loggers =

Undocumented