katzgrau / KLogger

A Simple Logging Class For PHP
http://codefury.net/projects/klogger/
981 stars 284 forks source link

Split log file into smaller files #79

Closed shash7 closed 8 years ago

shash7 commented 8 years ago

Hi guys just confirming Klogger doesn't have any functionality where it will automatically split large log files(say >5mb) into smaller log files eh?

If not that would be a good functionality to have.

katzgrau commented 8 years ago

The log files (by default) have the date in their filename, which generally keeps the files from getting too large. Splitting by size would be nice, I suppose, but I don't consider it very high priority. My opinion is that production logs should generally be for WARN level lines or higher. If you've got 5mb+ of WARNs or ERRORs on a single day in production you've got bigger problems.