Skip to content

How can we add monolog context to SentryΒ #4125

@devnix

Description

@devnix

Core or SDK?

Platform/SDK

Which part? Which one?

sentry/sentry-symfony package

Description

In the Symfony integration guide there is some documentation to integrate it with Monolog: https://docs.sentry.io/platforms/php/guides/symfony/

I'm going crazy between closed issues and non-working examples for old versions of the SDK to send a message with Monolog, adding the message's own context, for example:

$this->logger->error('Unexpected entity state.', ['state' => $state, 'entity' => $entity]);

Suggested Solution

Add a definitive documentation for current version to add the capacity to log Monolog's message context to Sentry's log

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions