simple-node-logger icon indicating copy to clipboard operation
simple-node-logger copied to clipboard

Does it support log retention policy?

Open alishah730 opened this issue 4 years ago • 2 comments

I want to keep last 7 days log? How is that possible?

alishah730 avatar Mar 11 '20 01:03 alishah730

find <directory> -type f -mtime +<days> -delete

Example: find and delete txt files older than 7 days find ./*.txt -type f -mtime +7 -delete

FulvioSpelta avatar Apr 27 '20 07:04 FulvioSpelta