[GH-ISSUE #1293] Duplication of Messages in Log #532

Closed
opened 2026-03-04 02:15:47 +03:00 by kerem · 1 comment
Owner

Originally created by @crayner on GitHub (Feb 24, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1293

I have been experiencing a duplication of messages in the log. This may be because of a poor setup structure on my part, and eventually I will find some time to debug the setup structure. In the meantime, I worked out that if I check the handler being pushed to the logger, and reject if already set, my duplication issue disappears.
Hope this helps. The PR is #1292

Originally created by @crayner on GitHub (Feb 24, 2019). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1293 I have been experiencing a duplication of messages in the log. This may be because of a poor setup structure on my part, and eventually I will find some time to debug the setup structure. In the meantime, I worked out that if I check the handler being pushed to the logger, and reject if already set, my duplication issue disappears. Hope this helps. The PR is [#1292](https://github.com/Seldaek/monolog/pull/1292)
kerem closed this issue 2026-03-04 02:15:47 +03:00
Author
Owner

@Seldaek commented on GitHub (Jun 30, 2019):

Closing as per https://github.com/Seldaek/monolog/pull/1292#issuecomment-507048805 - this can easily done by extending the Logger class if you really want though.

<!-- gh-comment-id:507048837 --> @Seldaek commented on GitHub (Jun 30, 2019): Closing as per https://github.com/Seldaek/monolog/pull/1292#issuecomment-507048805 - this can easily done by extending the Logger class if you really want though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#532
No description provided.