Hello! I was reading a Promtail documentation page regarding log rotation and it says that there are two ways of rotating logs: copy & truncate and rename & create. Considering the truncate method is prone to data loss I would like to know which of those two strategies Caddy uses.
I’ve seen Matt link to a Lumberjack issue on this thread, does Caddy use that library for rotating logs? If so that automatically answers my main question.
Thanks!