'Add each fields from the logging contexts to the record.
Returns:
True to include the record in the log output.'

def filter(self, record):

    context = LoggingContext.current_context()
    for (key, value) in self.defaults.items():
        setattr(record, key, value)
    context.copy_to(record)
    return True
