@google-cloud/logging-winston
Advanced tools
Changelog
2.0.0 (2019-08-21)
middleware: We now promote the logEntry
metadata field in a
winston log info object to be the logName
reported to Stackdriver. This means
that the logs will show up under the log name specified by the logName
. In addition
there are several breaking changes to users of the express middleware:
The middleware function has been replaced by makeMiddleware.
makeMiddleware expects a winston logger to be passed in.
Previously, we would append a _applog
suffix to the user provided
application log name. We no longer do that. We use the user provided
log name for the application logs. The request logs now have a suffix.
Rationale:
Let the middleware users provide a winston logger that we annotate with a transport
rather than creating two winston loggers on user's behalf. We avoid the
need for having two transports by pomoting the logName
field from the
winston metadata into the LogEntry. This allows a child logger to write
to a different stackdriver log stream - as needed for request bundling.
Changelog
1.0.0 (2019-06-11)
Changelog
v0.11.1
04-09-2019 17:34 PDT
Changelog
v0.11.0
02-15-2019 10:42 PST