mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #276] Stream Handler #89
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#89
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 @harikt on GitHub (Nov 22, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/276
Hi @Seldaek ,
I was running
StreamHandlerinside a Gearman Job server and it seems it could not log all the errors.Probably need to look another handler or is this a bug ?
@Seldaek commented on GitHub (Nov 22, 2013):
I don't see why it couldn't.. Without more details I can't really help you.
@harikt commented on GitHub (Nov 22, 2013):
Hey @Seldaek ,
Thanks for the quick reply .
and I have around 5 to 10 gearman clients running.
@harikt commented on GitHub (Nov 22, 2013):
probably http://us3.php.net/file_put_contents will be better I guess. Anything else I could share ?
@Seldaek commented on GitHub (Nov 22, 2013):
It should be no problem since the StreamHandler opens all logs with
fopen(..., 'a')it will always append to the end.You can try with:
You end up with a.log that has the three lines we wrote, even with two handles open on the same file.
@harikt commented on GitHub (Nov 22, 2013):
I am trying in gearman worker. Do you see an overlapping of the items ?
@Seldaek commented on GitHub (Nov 22, 2013):
I don't have a gearman setup but no I don't see any overlap, well multiple requests can be interlaced but every line is a clean write from one request.
@harikt commented on GitHub (Nov 22, 2013):
:( bad time .
@harikt commented on GitHub (Dec 2, 2013):
Tested with client and worker . Seems something else is wrong. So closing the issue.
client.phpworker.php