l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
396 stars 70 forks source link

Some control over log size #113

Closed saitoh183 closed 4 years ago

saitoh183 commented 4 years ago

I just wanted to know if it would be possible to add log size control in the config file. The reason behind the request is that Logarr has a hard time loading when the log starts to go over 2mb. Most of my logs in there roll when they hit 1mb just so that logarr stays responsive and more so when loading the page via mobile.

zenjabba commented 4 years ago

/var/log/plex_autoscan.log { missingok notifempty size 2m yearly create 0600 root root }

saitoh183 commented 4 years ago

@zenjabba

Where do i add that?

zenjabba commented 4 years ago

in your logrotate configuration file

https://www.thegeekstuff.com/2010/07/logrotate-examples/

saitoh183 commented 4 years ago

@zenjabba Thank you!

desimaniac commented 4 years ago

Ill set it to rotate log at 2MB