What's the log rotation strategy Caddy uses?

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. :slight_smile:


I should probably have checked the dependencies before asking. :sweat_smile: Sorry!

1 Like

This topic was automatically closed after 60 days. New replies are no longer allowed.