LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-09-2006, 01:33 AM   #1
George2
Member
 
Registered: Oct 2003
Posts: 354

Rep: Reputation: 30
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
 
Old 08-09-2006, 01:57 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
man logrotate
 
Old 08-13-2006, 06:55 AM   #3
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log File with Mput size greatmenon Linux - Software 1 02-26-2006 08:29 PM
how i can reduce the squid log size.. shahg_shahg Linux - Networking 2 06-16-2005 02:23 PM
/var/log/maillog file size vaughn Linux - Software 6 12-15-2003 05:12 PM
How to control log file size in /var/log? yan Linux - General 2 10-13-2003 05:00 PM
Limiting the size of a log file ganninu Linux - General 1 09-18-2003 08:23 AM


All times are GMT -5. The time now is 10:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration