metac icon indicating copy to clipboard operation
metac copied to clipboard

Enable logging in json format

Open grzesuav opened this issue 5 years ago • 2 comments

https://github.com/GoogleCloudPlatform/metacontroller/issues/167

grzesuav avatar Mar 17 '20 21:03 grzesuav

What is the end goal in mind here @grzesuav ? Do we think exposing operational stuff as metrics achieves the same goal? Since metac can be used as a library, does it mean all those projects should also use json based logging?

AmitKumarDas avatar Mar 18 '20 12:03 AmitKumarDas

To make it compatible with elasticsearch or any distributed logging aggregation system.

It should be configurable, I do not have much insights in go ecosystem.

In java world I would :

  • use logging abstraction (like slf4j)
  • separate standalone and library packages - like distribution == library + runtime implementation so it allow to have common core and let implementation of used logging library up to user and put some additional layer for distribution

grzesuav avatar Mar 18 '20 17:03 grzesuav