-
Notifications
You must be signed in to change notification settings - Fork 748
Open
Labels
featureRequest for adding a new featureRequest for adding a new feature
Description
Hey, I wanted to explore whether you'd consider adding additional data to log records that get passed to handlers, namely:
args
kwargs
raw_message
(or maybetemplate
): the raw, unformatted message before any color formatting or interpolation is applied
Basically, these would just be the args
, kwargs
and message
that the Logger._log
function receives, verbatim.
The motivation is that this would allow observability tools to hook into Loguru logs better -- I'm from Sentry and we're currently working on adding logs support to our Loguru integration.
If this sounds ok, I'm happy to PR the change.
Metadata
Metadata
Assignees
Labels
featureRequest for adding a new featureRequest for adding a new feature