-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[logs] missing cookbook about logrotate #1161
Comments
Well, this depends on the focus that the documentation wants. If we document logrotate, we'll have to document other technologies involved with web applications in production. Since there's already a cookbook about setting up Varnish, i don't think this is an issue. +1! |
Any official comment for this one? I would write it, but of course only if there is a change it gets merged. |
Actually documenting something like However, monolog does have a Thanks! |
+1 to this kind of documentation |
To be clear, the deliverable on this - in my opinion - would be to create a new cookbook article under "Logging" called "How to leverage Monolog handlers". In this document, we would mention every (or at least most) of the handlers in Monolog with a short description about what they do and a short quick example on how to use them. |
@weaverryan that looks more like a reference, doesn't it? I think I prefer to put that in our references documentation. |
it would not hurt to mention somewhere early in the doc that one needs to rotate the logs in app/logs/ - if people are not aware of that, they fill up their disk with logs... i don't think we need to document logrotate, but just mention it in the right place so people who have a clue notice the hint, and those who don't go look it up. |
As suggested by @weaverryan, there are two things to do:
|
This is now alreadyd ocumented in the API docs of Monolog. Besides this, we might want to move everything to the bundle docs: #4983 |
…e (javiereguiluz) This PR was merged into the 2.3 branch. Discussion ---------- Added a note about log file sizes and the use of logrotate | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | 2.3+ | Fixed tickets | #1161 Commits ------- 2d23a8d Linked "logrotate" to its official website 472c803 Minor rewording b52d4af Added a note about log file sizes and the use of logrotate
This can be closed technically.... though I'd love to see a note about |
…aviereguiluz) This PR was merged into the 2.3 branch. Discussion ---------- Added a note about the rotating_file monolog handler | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | #1161 Commits ------- db1e798 Created a new section for rotating log files and explained the max_files configuration option 7345c17 Added XML and PHP configuration samples 31fd0db Added a note about the rotating_file monolog handler
Configuring logrotate is maybe an off topic but it could be great to add a cookbook on how to configure logrotate to deal with logs (sometimes it can become huge)... Symfony needs more real cookbook about productions topics ;)
Cheer
The text was updated successfully, but these errors were encountered: