Internal method to filter into the formatter before being passed to the main Python logger

def _log(self, lvl, msg, type, args, kwargs):
        """
        Internal method to filter into the formatter before being passed to the main Python logger
        """
        extra = kwargs.get('extra', {})
        extra.setdefault("fastlog-type", type)
        extra.setdefault("fastlog-indent", self._indent)
        kwargs['extra'] = extra

        self._lastlevel = lvl

        self.inner.log(lvl, msg, *args, **kwargs)