marigold-dev / pollinate

A platform agnostic library for P2P communications using UDP and Bin_prot
22 stars 2 forks source link

Add proper logging support #10

Open rosalogia opened 2 years ago

rosalogia commented 2 years ago

Summary

We should use a strong logging library that provides us with the ability to hide log messages with log levels at the very least. Maybe logs?

Relevant Documentation and Links

oteku commented 2 years ago

If pollinate remain a library, logging system must be a dependency injected at by the project which use pollinate. Meaning it would be the purpose of deku to provide you a logging system that fit your expected interface (which is easy for loging)

This is usually achieved in OCaml using functors or virtual library