Not sure what exactly you'd want to fed as input to logrotate input? :)
Well, logrotate relies on a config file describing a rotation, even if minimal.
You can try with making a conffile like:
and then: touch foo.log; logrotate -d conffile
will print you debug info on what logrotate would do and why.
Now I have a story which I believe sheds some light on of the meaning of "play well with logrotate". Quite long but the context is IMO important.
Usual problem that logrotate - or any other external rotator - has with some loggers is that they continue to write to a rotated file. That's why "copytruncate" option was invented, now widely used, despite its own problems with possibility of losing some data and obvious need to use additional disk space, not to mention i/o.
Now what "some loggers" means also Java loggers and this had some consequences in the wild.
Tomcat, Weblogic, JBoss & family recommended to use this "copytruncate" and admins stick to this - resulting in recurring problems posted regurarly to serverfault.com and similar sites - you can imagine that on productions logs being rotated are quite big.
In the meantime Java community of developers decided that "external log rotation is wrong" and heavily advertised rotation built into Log4J - which in the real world also isn't so sweet, as it requires admins to reconfig Log4J in order to change the rotation, which is (a) not their way of doing things (b) sometimes not what they are able to do because of some release management process (there are many organizations where OS admins and appserver admins are different teams with different budgets and permissions).
But that point of view has spread widely beyond Java world.
The outcome we have now: coders usually think that internal log rotation is the best way, while sysadmins think that the external log rotation is the best way.
I think both have valid arguments, but also at many companies logrotate & friends seem to be not going away.
Now what Elixir Logger could do to clear this out is to detect the situation when file underneath was moved.