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

How do I limit the length of log files? Symfony

  • SOLVED

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)

2010-11-28

Graham Christensen answers:

Its pretty simple.

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

rotate:
and purge:
and history:
or period:

see:

http://www.prowareness.com/blog/?p=561