Skip to content

Get message Template value (before formatting) #1481

Description

@rustam-ashurov-mcx

Hello,

Is it possible to get message Template value (before formatting) or add it somehow to log properties?

E.g. we have a log:

logger.info("Background job {JobName} has finished due to cancellation event", JobName=job.name)

And we have related logs in console:

"Background job MyAmazingJob has finished due to cancellation event"

But additionally we want to see a raw template also to be able to find all related logs easily:

"Background job {JobName} has finished due to cancellation event"

Is it possible? I was unable to find where to get this data from the log or logger

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions