certstream-server-go icon indicating copy to clipboard operation
certstream-server-go copied to clipboard

Implement logging to a file

Open d-Rickyy-b opened this issue 3 years ago • 2 comments

Currently all the logs are only sent to stdout. It would be better to have a (configurable) log file to store all the logs in.

d-Rickyy-b avatar Aug 07 '22 12:08 d-Rickyy-b

Any preference on the implementation? A library of choice?

deterri avatar Mar 29 '23 12:03 deterri

Hi @deterri, thanks for your offer to help :). I am not a big fan of any of the Go logging libraries out there. They come with tons of features while I (personally) only want to dump logs to a file, sometimes I also wish for the configurability of log levels.

For another project I implemented logging with the builtin log module (see here). I guess that would be the easiest way to go. If you have good arguments to why it would be beneficial to use another logging library, feel free to explain.

Cheers Rico

d-Rickyy-b avatar Mar 29 '23 21:03 d-Rickyy-b