Closed macrozone closed 10 months ago
If we use useMessageField
option set to false then logs are appearing fine in cloud run.
If we use
useMessageField
option set to false then logs are appearing fine in cloud run. Are you usingredirectToStdout: true
? I get thelogName
added when using:redirectToStdout: true, useMessageField: false,
Hi @macrozone , could you try useMessageField and see if you are still running into this? useMessageField
is used to control if "message" field is used to store structured, non-text data inside jsonPayload field when redirectToStdout is set.
Closing issue as setting useMessageField
to false will solve the issue here.
I'm having the same issue with useMessageField: false
and redirectToStdout: true
.
please re-open
Environment details
@google-cloud/logging-winston
version: 5.3.0Steps to reproduce
you notice that it adds an additional logName property
projects/{{projectId}}/logs/winston_log
which adds noise to it and is even the first thing you see and therefore makes it hard to read the logs.you also see that the real correct logName is also visible one level above