Source code for pykit.logdatareciever

from pykit.logtable import LogTable


[docs] class LogDataReciever: """An abstract base class for classes that receive and process log data.""" timestampKey: str = "/Timestamp"
[docs] def start(self): """Called when the logging process starts. Can be used for initialization."""
[docs] def end(self): """Called when the logging process ends. Can be used for cleanup."""
[docs] def putTable(self, table: LogTable): """ Processes a `LogTable` instance. This method is called for each log entry. :param table: The `LogTable` containing the log data for a specific timestamp. """