using logrotate ubuntu and in node

For rotating your log in log rotate we need to create a file in /etc/logrotate.d/app/ containg.

/var/log/app/*.log {
 weekly
 missingok
 rotate 5
 compress
 delaycompress
 notifempty
 create 640 root adm
}

 

References :

https://github.com/visionmedia/log.js

http://linuxers.org/howto/howto-use-logrotate-manage-log-files

 

 

Advertisements

About rahul23134654

Hi, I am Rahul Meha , B.E. in (I.T.)
This entry was posted in Ubuntu/Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s