Logger lacks of rotation by date or by size?

just want to know a way to logger my file in
20190621.log
20190622.log
or mylog1.log
mylog2.log
auto by logger;

I done via create my own class