Skip to content

Added a note about log file sizes and the use of logrotate #5006

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

Merged
merged 3 commits into from
Mar 13, 2015

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? yes
Applies to 2.3+
Fixed tickets #1161

@cordoval
Copy link
Contributor

is it customary to link logrotate to some linux official link?

@javiereguiluz javiereguiluz deleted the mention_logrotate branch February 18, 2015 16:22
@javiereguiluz javiereguiluz restored the mention_logrotate branch February 18, 2015 16:39
@javiereguiluz javiereguiluz reopened this Feb 18, 2015
Beware that log file sizes can grow very rapidly, leading to disk space exhaustion.
This is specially true in the ``dev`` environment, where a simple request can
generate hundreds of log lines. Consider using tools like the ``logrotate``
Linux command to contain log files before they become a problem.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to rotate log files

@timglabisch
Copy link
Contributor

i think this topic is very important. shouldn't we provide an example logrotate configuration?

@stof
Copy link
Member

stof commented Feb 21, 2015

@timglabisch I don't think documenting logrotate is in the scope of the symfony doc. Linking to the logrotate doc seems a better idea.

@javiereguiluz
Copy link
Member Author

Anybody knows which is the official web site of logrotate?

@xabbuh
Copy link
Member

xabbuh commented Feb 21, 2015

Looking at what is provided in the logrotate manpage, there seems to be nothing else than https://fedorahosted.org/logrotate/.

@javiereguiluz
Copy link
Member Author

@xabbuh thanks for the reference. I've just linked the logrotate command to that URL.

@xabbuh
Copy link
Member

xabbuh commented Feb 23, 2015

👍 Looks good to me. By the way, how is this handled on Windows?

@weaverryan
Copy link
Member

Thanks Javier! I still think we should mention "rotating_file" as a backup - it's not as robust, but is much easier to get setup for the majority of people. I'd welcome a PR mentioning it (I didn't personally know it existed for years). Cheers!

@weaverryan weaverryan merged commit 2d23a8d into symfony:2.3 Mar 13, 2015
weaverryan added a commit that referenced this pull request Mar 13, 2015
…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
@javiereguiluz javiereguiluz deleted the mention_logrotate branch January 3, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants