lf icon indicating copy to clipboard operation
lf copied to clipboard

[WIP] Improve logging

Open CatsDeservePets opened this issue 2 months ago • 1 comments

This experimental PR aims to improve lf's logging.

  • Add log level and control over them
  • Improve existing log messages
  • Add more debugging logs in some places

I decided against using slog as it does way more things than we need, doesn't support printf function calls and formats the output in weird way (key=value). I also decided against introducing another third party library so I just wrote a really simple implementation loosely based on slog.

Screenshot 2025-10-20 at 12 57 41 AM

CatsDeservePets avatar Oct 19 '25 23:10 CatsDeservePets

Hey @joelim-work. I would also like to know, if this is the right direction here. This is more of a dirty quick hack to look what is possible.

CatsDeservePets avatar Oct 20 '25 01:10 CatsDeservePets