Description
Currently logs are truncated when they are rotated. This is how it is usually done in the Linux world, but it makes it hard to use log aggregation systems such as LogStash or FileBeat.
To facilitate the use of such tools, it would be nice if it was possible to change the log rotation strategy, such that the names of log files are always unique, and logs are append-only, with no truncation. For example, the name of the files can be based on the date, and at midnight, NextCloud just starts logging to a new file with the next day's date.
Currently I have set up a cron job that changes the name of log files in config.php once a day at midnight, but this is pretty ugly.
For context, I'm running NextCloud in Docker, and I need to use FileBeat to collect the log files into a database.