LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   any ideas to reduce log file size or make log file size managed? (https://www.linuxquestions.org/questions/programming-9/any-ideas-to-reduce-log-file-size-or-make-log-file-size-managed-472200/)

George2 08-09-2006 01:33 AM

any ideas to reduce log file size or make log file size managed?
 
Hello everyone,


I found the log file size is becoming larger and larger. Any ideas to reduce the file size or make log file size managed, for example, keep the log file be fixed size or some other policies? Any reference tutorials or open source samples to recommend?


thanks in advance,
George

chrism01 08-09-2006 01:57 AM

man logrotate

George2 08-13-2006 06:55 AM

Thank you chrism01,


Quote:

Originally Posted by chrism01
man logrotate

Are there any documents about how to design log management library to achieve the advantages of keeping it to a fixed size?

Logrotate is a good tool, but I would rather write a library by myself to be flexible and customized to my specific application. And, if possible, I would like to port it to Windows. Logrotate does not provide very much design documents. Right?


regards,
George


All times are GMT -5. The time now is 05:31 AM.