TwP / logging

A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
https://rubygems.org/gems/logging
MIT License
529 stars 100 forks source link

clean up output.log #180

Closed mm580486 closed 5 years ago

mm580486 commented 6 years ago

hi guys

i want to limit output.log file for example i want only saved last 50000 record and remove older record, i can do ? how ?

TwP commented 6 years ago

The RollingFile appender is the closest thing I can offer you. Unfortunately it does not support limiting the file by the number of log records written. It can roll the file based on size and by age.