34:9fce700d42de | 35:495a510a6d01 |
---|---|
10 | 10 |
11 def emit(self, record): | 11 def emit(self, record): |
12 self.buffer.append(record) | 12 self.buffer.append(record) |
13 l=len(self.buffer) | 13 l=len(self.buffer) |
14 if l>self.capacity: | 14 if l>self.capacity: |
15 self.buffer=self.buffer[(l-self.capacity+1):l] | 15 self.buffer=self.buffer[(l-self.capacity):(l-1)] |
16 | 16 |
17 def formatAll(self): | 17 def formatAll(self): |
18 return [self.format(record) for record in self.buffer] | 18 return [self.format(record) for record in self.buffer] |