Open ricmalta opened 6 years ago
I'm also seeing this issue. @jsageryd or @marcusolsson, any thoughts on this?
@ricmalta maybe make a setting to switch between v1 and v2 formatting?
I'm no longer a maintainer of this repository. Is this still being maintained, @jsageryd?
I am not maintaining it. Perhaps @gubyb or @wileeam would know?
I'm doing a basic integration with negroni and logrus middleware using this formatter . However the format is not being recognised by stackdriver. My Implementation:
utils.logger.go
Middleware implementation
Output sample
Stackdriver output
As you can see the playload is in the jsonPayload.context.data and not being actually filtered by stackdriver. By your code, the fields are not completely compatible with the current (v2) LogEntry definition: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry.
There is any easy solution to this or this module is deprecated?