DESIGN: Logging policies

Please see the proposed design of logging policies and leave your feedback on GitHub:

This looks good. I think it will be very useful. Thanks for considering this.

There does not seem any flag for errors/warnings? For example, I might want to see errors, but not warnings (if there is such a distinction).

Regarding

The default policy will only emit basic directory-level summary and not other entries

IMO the default should include errors, and it should also include info on ignored folders/files (helps debugging ignore/include patterns).

Regarding

log when [non-]directories are ignored

It would be also great (if possible) to include the reason (“policy or a kopiaignore file, etc”).

On the UI we see a lot of “entry not cached” messages. This pollutes the log IMO and should be excluded by default.

1 Like