How to control logfile size?

Hi,
I have enabled logging but syslog and deamon.log are getting way to big for my taste.
How can I control filesize and when to logrotate and when to delete?

I guess you can change the max size in the logrotate configs in

/etc/logrotate.d/

For further explenation see this:
https://newbedev.com/how-do-i-limit-the-size-of-my-syslog

Yes, thank you.