Log rotation in druid

Documentation says latest version of Druid provide log rotation out of the box through the supervise program. How exactly this happens ?

Based on size ? How much?
Based on time ? how frequently?
Based on custom configuration? Which file should we be updating? Any examples?

Any good documentation link on this would be greatly appreciated.

Druid uses log4j2, so you can configure the settings per:

This may help…

Thanks, Rachel.

So, “Druid provide log rotation out of the box in latest versions”. Is this statement still valid? If, so wanted to understand on what size and frequency Druid uses to rotate the logs.