[GH-ISSUE #1222] Error in LineFormatter #508

Closed
opened 2026-03-04 02:15:35 +03:00 by kerem · 2 comments
Owner

Originally created by @cyrilmarois on GitHub (Nov 8, 2018).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1222

Got the following error in my app.
preg_replace(): Subject is too long
LineFormatter.php:107

Originally created by @cyrilmarois on GitHub (Nov 8, 2018). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1222 Got the following error in my app. `preg_replace(): Subject is too long` LineFormatter.php:107
kerem 2026-03-04 02:15:35 +03:00
  • closed this issue
  • added the
    Support
    label
Author
Owner

@Seldaek commented on GitHub (Nov 19, 2018):

Are you logging an insane amount of data? I am not sure at which point preg_replace bails out with that, but I think the limit is quite high.. Maybe make sure you're not attaching MBs worth of data in the log context?

<!-- gh-comment-id:440078763 --> @Seldaek commented on GitHub (Nov 19, 2018): Are you logging an insane amount of data? I am not sure at which point preg_replace bails out with that, but I think the limit is quite high.. Maybe make sure you're not attaching MBs worth of data in the log context?
Author
Owner

@cyrilmarois commented on GitHub (Nov 29, 2018):

I wasn't supposed to log that much data. But It happened.
Thx for your feedback.

<!-- gh-comment-id:442988122 --> @cyrilmarois commented on GitHub (Nov 29, 2018): I wasn't supposed to log that much data. But It happened. Thx for your feedback.
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#508
No description provided.