(self, record=None, **kwargs)
Assumption: no newlines in the input.
Assumption: no newlines in the input.
Assumption : no newlines in the input .
def log(self, record=None, **kwargs):
        """
        Assumption: no newlines in the input.
        """
        if record is None:
            record = {}
        record.update(kwargs)
        record['_stamp'] = time.time()
        with open(self.fname, 'ab') as f:
            f.write(json.dumps(record, ensure_ascii=True)+'\n')
def log ( self , record = None , * * kwargs ) : if record is None : record = { } record . update ( kwargs ) record [ '_stamp' ] = time . time ( ) with open ( self . fname , 'ab' ) as f : f . write ( json . dumps ( record , ensure_ascii = True ) + '\n' )