mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #447] No warning/error logs in prod environment #154
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#154
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 @IcarusHU on GitHub (Nov 3, 2014).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/447
Hi,
I'm not sure whether its actually a Monolog error, but I cannot find a solution for that problem for the 3rd day, and I thought maybe you can help.
I had different monolog configurations for my dev/stage/prod env, but since I've experienced the problem, I tried to use the same for all, which is the following:
The database logger is a custom bundle, from this source:
http://dionbeetson.blogspot.hu/2013/01/symfony2-logging-application-errors-to.html
The guy, who wrote the database logger bundle informed me, that his solution is for Symfony2.1, and will update it soon, however the problem is not only with the database logger.
In dev and stage environment, the logger works like a charm, everything goes to the right place, but the email sender
In production environment (I tried it on the same server changing the env to prod, and also with debug turned on and off - cache cleared, etc.) the database logger and the email sender reporting are not working, and the file loggers are only receiving <=200 level messages (app.INFO, request.INFO). Also the database debugger gets only <=200 level messages.
We though about that maybe apache error logging is the troublemaker here, but it also works with dev and stage env, so it can't be.
If the debug option is turned on in prod environment, I receive an Apache 500 error, but nothing is logged anyway..
I'm working on Amazon AWS, using PHP 5.4.20, Symfony 2.2.11
Thanks for your help or solution in advance.
@stof commented on GitHub (Dec 27, 2014):
For questions about Symfony, you should ask on MonologBundle, not here.
@IcarusHU commented on GitHub (Jan 5, 2015):
Hi,
thanks for your short and helpful answer after 2 months, I was hoping a bit faster and just-a-bit more helpful attitude, how should I know that it's a symfony problem and not a monolog one? I thought maybe you have faced a problem similar to this.
but ok, so you did not; don't bother with the reply, I will ask it in somewhere else. :(
have a nice day