I am looking for log archival utility or approach which should be able to help me in based on below policy.
(1) whenever log file (system.log) size >30859 or file is 3 day old then it should archive the same with new name system.log1 and again start the feeding the log in system.log file from start after truncating its content.
I am going to write all the debug statements in log file through c++ code in linux environment.
Any immediate help will be appreciated.
can-mohan 0 Junior Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
rubberman commented: Not best option - see my reply below about using logrotate. -3
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
can-mohan 0 Junior Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.