d-Rickyy-b / certstream-server-go

This project aims to be a drop-in replacement for the certstream server by Calidog. This tool aggregates, parses, and streams certificate data from multiple certificate transparency logs via websocket connections to the clients.
MIT License
88 stars 8 forks source link

Implement logging to a file #8

Open d-Rickyy-b opened 2 years ago

d-Rickyy-b commented 2 years ago

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.

deterri commented 1 year ago

Any preference on the implementation? A library of choice?

d-Rickyy-b commented 1 year ago

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