On 2016-07-08 14:50, Ian Davis wrote:
If you need
to be able to swap logging implementations then define the minimum
interface you need to be supported and then either directly use the 3rd
party packages you need or write an adapter.
It is possible to do a logging library which is source code compatible
with the stdlib logger library.
I tried that with https://github.com/One-com/gonelog/
It has allowed to easily "upgrade" daemons written using the standard
logger to leveled and/or structured logging.
/Peter
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.