weekly
in your/etc/logrotate.conf
means all your log files will be rotated weekly, if this option is not overridden locally.The manual says:
Each configuration file can set global options (local definitions over- ride global ones, and later definitions override earlier ones) and specify logfiles to rotate.
If the
size
option is used, logrotate will ignore thedaily
,weekly
,monthly
, andyearly
options as stated herelogrotate is executed daily in order to check criterion such as the size. Logs are rotated at the same time if applicable.
The manual says:
Normally, logrotate is run as a daily cron job. It will not modify a log multiple times in one day unless the criterion for that log is based on the log's size and logrotate is being run multiple times each day, or unless the -f or --force option is used.
Therefore, logrotate checks the size of your log everyday and it performs the rotation if necessary.