Skip to content

Use Monolog log level in Sentry\Monolog::isHandling #985

@Nomexus

Description

@Nomexus

Problem Statement

The current implementation uses the converted Sentry\Logs\LogLevel in Sentry\Monolog::isHandling.
This removes the possibility to differentiate between some log levels, like INFO and NOTICE. They get merged to LogLevel::Info. This makes it impossible to only send Notice-Logs to Sentry.

It's also very confusing to suddenly see INFO logs in Sentry after configuring NOTICE.

It also affects CRITICAL, ALERT and EMERGENCY.

Solution Brainstorm

The method Sentry\Monolog::isHandling should check against the Monolog level, instead of the Sentry level to decide if a log entry gets processed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions