techknowlogick / shiori

[Archived] Shiori is a simple bookmark manager. Upstream is now being supported again
https://github.com/go-shiori/shiori
MIT License
78 stars 9 forks source link

option for more verbose output in the console for debbuging/testing/monitoring #143

Open m040601 opened 5 years ago

m040601 commented 5 years ago

I am starting to stress testing shiori for it's bottlenecks. Examples:

To do this when I'm running "shiori serve" I can:

It would be nice one could have an option or a flag, example --debug or --verbose or --warning --info --error to spit out more verbose information. Print it to this or that, pipe it to somewhere, logfile, errorfile etc.

Apologies for not contributing code. Again I'm not a developer, and I know nothing about Go programing.

techknowlogick commented 5 years ago

Don't be sorry at all, I really appreciate all of what your feedback, it is helping me a lot (with your feedback I've been able to fix several bugs already, and also it is shaping how I plan to make changes for the future).

Another project I am contributing to, has multiple logs that can be outputted, one is SQL commands being run, and another is webserver logs, I can try to integrate this into shiori as well. Perhaps I can also include outbound HTTP requests as well (for when bookmarks are cached).

techknowlogick commented 5 years ago

In the nightly I've added SQL logging to output and also webserver logs, perhaps those would be helpful in debugging.