[GH-ISSUE #1594] Syslog formatter #681

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

Originally created by @dkarlovi on GitHub (Sep 17, 2021).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1594

First of, I know the Syslog handler exists.

The suggestion here is to create a Syslog formatter, which would allow using it without messing around with PHP's settings.

Use case:

  • formatter is created and Symfony enables it by default in dev mode
  • the format of the log file is by default recognized by various logging helpers like https://lnav.org/ without any configuration, super-charging the logging information
  • the user (developer) gets great DX by default, using standard best-of-kind apps

Syslog seems like the most obvious choice since it's very widely supported, if there's another alternative, that also works.

Originally created by @dkarlovi on GitHub (Sep 17, 2021). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1594 First of, I know the Syslog handler exists. The suggestion here is to create a Syslog formatter, which would allow using it without messing around with PHP's settings. Use case: - formatter is created and Symfony enables it by default in dev mode - the format of the log file is by default recognized by various logging helpers like https://lnav.org/ without any configuration, super-charging the logging information - the user (developer) gets great DX by default, using standard best-of-kind apps Syslog seems like the most obvious choice since it's very widely supported, if there's another alternative, that also works.
kerem 2026-03-04 02:16:56 +03:00
  • closed this issue
  • added the
    Feature
    label
Author
Owner

@Seldaek commented on GitHub (Jul 22, 2022):

Closed by https://github.com/Seldaek/monolog/pull/1689

<!-- gh-comment-id:1192623015 --> @Seldaek commented on GitHub (Jul 22, 2022): Closed by https://github.com/Seldaek/monolog/pull/1689
Author
Owner

@dkarlovi commented on GitHub (Jul 22, 2022):

Yay! \o/ Created a Symfony bundle issue here: https://github.com/symfony/monolog-bundle/issues/441

<!-- gh-comment-id:1192637260 --> @dkarlovi commented on GitHub (Jul 22, 2022): Yay! \o/ Created a Symfony bundle issue here: https://github.com/symfony/monolog-bundle/issues/441
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#681
No description provided.