What elixir library recommended to log, where you can generate the files and the name confed to the current date and you can configure the maximum size of log file.
In Linux/Unix that would be logrotate…
And it does not need to be the task of Elixir, the OS can do this.