I create, and attempt to maintain, several haxelib libraries.
I’d like to add logging statements beyond “trace”, ideally, with different levels of logging: debug, info, etc.
But how to do this in way that can be easily used when someone else is consuming the library, and may have their own logging solution? How to do this in a way that’s easy for the library consumer to understand, and allow them to use my libraries log statements with their own solution, with a minimal amount of configuration?
I’m ok if the solution is not cross-platform, if the solution is simpler.
I’d really like to hear both quick-and-dirty, and more complex solutions, or ideas, if anyone has any.