    def get_latest(self, action:str=None) -> dict:
        """Get latest log record. Note that this
        is in the same order as in which the
        handler(s) return the log records.

        Parameters
        ----------
        action : str
            Filtering with latest action of this
            type.
        """
        kwargs = {'action': action} if action is not None else {}
        return self.filter_by(**kwargs).last()
Get latest log record. Note that this
is in the same order as in which the
handler(s) return the log records.

Parameters
----------
action : str
Filtering with latest action of this
type.
rocketry/core/log/adapter.py