Module structlog.processors.stack_writer

Read the stack trace and provide additional log entries.

Functions

StackWriter (keys, opts) Add stack information to log entries.


Functions

StackWriter (keys, opts)
Add stack information to log entries.

Parameters:

  • keys The entries to add: ["line", "file"]
  • opts Optional configurations
    • max_parents The maximum number of parent directory that file should include
    • stack_level The stack level to inspect, starts from the caller of the logger's method, defaults to 0

Returns:

    A callable that adds the specified keys to the log entry
generated by LDoc 1.4.6 Last updated 2023-01-08 13:36:35