make_record_with_extra
faststream.log.formatter.make_record_with_extra #
make_record_with_extra(self: Logger, name: str, level: int, fn: str, lno: int, msg: str, args: Tuple[str], exc_info: Optional[Union[Tuple[Type[BaseException], BaseException, Optional[TracebackType]], Tuple[None, None, None]]], func: Optional[str] = None, extra: Optional[Mapping[str, object]] = None, sinfo: Optional[str] = None) -> LogRecord
Creates a log record with additional information.
PARAMETER | DESCRIPTION |
---|---|
self | The logger object. TYPE: |
name | The name of the logger. TYPE: |
level | The logging level. TYPE: |
fn | The filename where the log message originated. TYPE: |
lno | The line number where the log message originated. TYPE: |
msg | The log message. TYPE: |
args | The arguments for the log message. |
exc_info | Information about an exception. TYPE: |
func | The name of the function where the log message originated. |
extra | Additional information to include in the log record. |
sinfo | Stack information. |
RETURNS | DESCRIPTION |
---|---|
LogRecord | The log record. |
Note
If extra
is None
, it will be set to the value of context.get_local("log_context")
.