'Determine if the specified record is to be logged.
Is the specified record to be logged? Returns 0 for no, nonzero for
yes. If deemed appropriate, the record may be modified in-place.'

def filter(self, record):

    if (self.nlen == 0):
        return 1
    elif (self.name == record.name):
        return 1
    elif (record.name.find(self.name, 0, self.nlen) != 0):
        return 0
    return (record.name[self.nlen] == '.')
