Skip to content

Directly adding fields to json log when log has parameterized string #44

Open
@Divyadarshee

Description

@Divyadarshee

is something like this possible
example:

addItem='abcd'
logger.info(f"added todo item {addItem} to the todo list")

*note: or any way of adding parametrized string
log:
{'name': 'app.routes.controller', 'msg': 'added todo item abcd to the todo list', 'args': (), 'levelname': 'INFO', 'levelno': 20, 'fields': {'addItem': 'abcd'}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions