I've just found the rotating_file
type option for the monolog channels which will handle the rotation of the logs daily.
I'd like to rotate my logs weekly instead, but I can't find any info about it. Looking at the github project it seems that the possibility it at least contemplated:
class RotatingFileHandler extends StreamHandler
{
public const FILE_PER_DAY = 'Y-m-d';
public const FILE_PER_MONTH = 'Y-m';
public const FILE_PER_YEAR = 'Y';
....
Is it possible?