Ask your Symfony questions! Pay money and get answers fast! (more info)

How do I limit the length of log files? Symfony


I decided that all financial transactions were "critical", mostly because I wanted redundant recording of all transactions. So every question gets logged to my production log file. So it is bloating up huge. How do I limit the size of these files? Does Symfony have a built-mechanism, or do I need to write some cron script outside of Symfony?

Answers (1)


Graham Christensen answers:

Its pretty simple.

In the logging.yml you can set various options, like:

and purge:
and history:
or period: