Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ExtraAdder Processor function to structlog.stdlib #377

Closed
wants to merge 5 commits into from

Commits on Dec 8, 2021

  1. Add add_extra Processor function

    This processor function will add extra attributres from LogRecord
    objects to the event_dict, and can be useful for making values passed
    in the extra parameter of the logging module's log methods pass through
    to output as additional properties.
    
    Fixes hynek#209
    aucampia committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    5fa5cec View commit details
    Browse the repository at this point in the history
  2. Some cleanup

    - fix assert parameter order
    - add `add_extra` to `__all__`
    aucampia committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    51ee09d View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Change add_extra to ExtraAdder

    This is so ExtraAdder can be configured with what keys it should copy.
    aucampia committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    95857ae View commit details
    Browse the repository at this point in the history
  2. Finish up change to ExtraAdder

    - Fix up documentation
    - Improve tests
    aucampia committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    100b43d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    199281b View commit details
    Browse the repository at this point in the history