awsc.common.LogHolder
- class awsc.common.LogHolder
Log stash object. Contains a list of log message from this and past runs. Interacts with the log storage yaml file to store and reload log messages.
Does not need to be instantiated, Common holds an instance of this.
- Attributes:
- raw_entrieslist(dict)
A list of raw log entries. Raw log entries are in a dict-form, rather than as ListEntry objects.
- controlawsc.log.LogLister
If the log list control is active, this is a reference to it. Just in case something loggable happens while looking at logs.
Methods
attach
(control)Attaches the log stash to a LogLister control and populates it.
detach
()Detaches a LogLister control from the log stash, probably because it was closed.
log
(message, summary, category, message_type)Adds a new log message to the log stash.
parse_log_messages
()Reads all raw entries from the disk storage and loads it into raw_entries.
parse_raw_entries
()Parses raw entries into the LogLister control if one is active right now.
write_raw_entries
()Writes the loaded raw entries to disk.
- __init__()
Methods
__init__
()attach
(control)Attaches the log stash to a LogLister control and populates it.
detach
()Detaches a LogLister control from the log stash, probably because it was closed.
log
(message, summary, category, message_type)Adds a new log message to the log stash.
parse_log_messages
()Reads all raw entries from the disk storage and loads it into raw_entries.
parse_raw_entries
()Parses raw entries into the LogLister control if one is active right now.
write_raw_entries
()Writes the loaded raw entries to disk.