Public Member Functions | |
| None | __init__ (self, int maxlen=50) |
| None | add_entry (self, LogEntry entry) |
| list[dict[str, Any]] | to_list (self) |
Public Member Functions inherited from homeassistant.components.system_log.LogEntry | |
| None | __init__ (self, logging.LogRecord record, re.Pattern paths_re, logging.Formatter|None formatter=None, bool figure_out_source=False) |
| dict[str, Any] | to_dict (self) |
Public Attributes | |
| maxlen | |
Public Attributes inherited from homeassistant.components.system_log.LogEntry | |
| count | |
| exception | |
| first_occurred | |
| key | |
| level | |
| message | |
| name | |
| root_cause | |
| source | |
| timestamp | |
Data store to hold max amount of deduped entries.
Definition at line 229 of file __init__.py.
| None homeassistant.components.system_log.DedupStore.__init__ | ( | self, | |
| int | maxlen = 50 |
||
| ) |
Initialize a new DedupStore.
Definition at line 232 of file __init__.py.
| None homeassistant.components.system_log.DedupStore.add_entry | ( | self, | |
| LogEntry | entry | ||
| ) |
Add a new entry.
Definition at line 237 of file __init__.py.
| list[dict[str, Any]] homeassistant.components.system_log.DedupStore.to_list | ( | self | ) |
Return reversed list of log entries - LIFO.
Definition at line 258 of file __init__.py.
| homeassistant.components.system_log.DedupStore.maxlen |
Definition at line 235 of file __init__.py.