mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #183] Terminal / Echo Handler #60
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#60
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 @SteveEdson on GitHub (Apr 22, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/183
I have some scripts that are sometimes executed manually, where the output is monitored in the terminal, and other times they run in the background as a scheduled task, where the output should be appended to a text file.
Are there any handlers that can be used to output to the browser / terminal? Ideally it could detect which one, and use
<br />or\nfor new lines, accordingly.@Seldaek commented on GitHub (Apr 22, 2013):
For terminal you can pass
"php://output"into a StreamHandler. It should work too in a browser if you echo a<pre>before, otherwise you could configure the handler to use another LineFormatter that outputs<br>at the end of the line.