Sends information to the output formatter, after adding some additional fields.
(self, *args, **kwargs)
| 175 | self._packet_fragments = defaultdict(dict) |
| 176 | |
| 177 | def write(self, *args, **kwargs): |
| 178 | """ |
| 179 | Sends information to the output formatter, after adding some |
| 180 | additional fields. |
| 181 | """ |
| 182 | if 'plugin' not in kwargs: |
| 183 | kwargs['plugin'] = self.name |
| 184 | if 'pcapfile' not in kwargs: |
| 185 | kwargs['pcapfile'] = self.current_pcap_file |
| 186 | self.out.write(*args, **kwargs) |
| 187 | |
| 188 | def log(self, msg, level=logging.INFO): |
| 189 | """ |