yggmail icon indicating copy to clipboard operation
yggmail copied to clipboard

Errors wrapping, logging.

Open GRbit opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. For now, only standard logger and errors libraries are used in this project. I suggest using the xerrors package to wrap errors with a stack trace and the zerolog package as a logger. If we use them, we will not need to additionally log every error but can log them only on the highest level also with the stack trace, which will help us to trace an error. Also, with the zerolog, we can easily split logs into categories (at least debug and all others).

Describe the solution you'd like I can add these features to the project and create a pull request if you like this idea =)

Describe alternatives you've considered I would be glad to discuss all the alternatives or additions to my thought.

GRbit avatar Sep 06 '21 09:09 GRbit