yggmail
yggmail copied to clipboard
Errors wrapping, logging.
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.