anz-bank / pkg

Common ANZ Go packages
https://pkg.go.dev/github.com/anz-bank/pkg
Apache License 2.0
2 stars 9 forks source link

Canonical log #30

Open nofun97 opened 4 years ago

nofun97 commented 4 years ago

Added API for canonical log and tests.

This is part of #16

daemonl commented 4 years ago

I think this problem could be solved in a different and possibly simpler way by implementing it as a package on top of the log library.

Imagine a library which exposes:

It would be able to be achieved with no modification to the logging library itself, and then becomes optional to follow the exact pattern of one log line per client request depending on the needs of the consumer