mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1455] Is it possible to set maxium logging level? #614
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#614
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imaegoo on GitHub (Apr 17, 2020).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1455
Monolog version 1.25.3
Hi,
I am using monolog in Drupal. I am finding a way to print
info&warnlog tostdout, and printerrorlog tostderr, if I configure 2 handlers,errorlog will appear in bothstdoutandstderr, that's not what I expected,errorlog should not print tostdout.Here is what I configured.
The StreamHandler only accept minimum logging level.
Is it possible to set maxium logging level?
Thanks.
@imaegoo commented on GitHub (Apr 20, 2020):
Finally I find a way.
$bubbleas FALSE.@Seldaek commented on GitHub (May 11, 2020):
You can also use FilterHandler to only pass some exact levels into a given handler.
@imaegoo commented on GitHub (May 11, 2020):
@Seldaek Thank you for the answer. I haven't noticed
FilterHandler, it would help.