def should_show_by_level(self, record_level, base_level=None):
if base_level is None:<EOL><INDENT>base_level = self.dump_level<EOL><DEDENT>return record_level >= base_level<EOL>
Args:
    record_level (int): log level of the record to check
    base_level (int or None): log level to check against, will use the
        object's :class:`dump_level` if None is passed

Returns:
    bool: True if the given log record should be shown according to the
        log level