Releases: Betterez/btrz-logger
Releases · Betterez/btrz-logger
v2.4.0
v2.2.0
Added an expressMiddleware(loggerFactory)
function that creates middleware for Express. The middleware will enhance the express req
object and add a req.logger
property. req.logger
is a logger that logs the traceId
associated with the request, in addition to whatever log data is provided.
v2.1.0
Added LoggerFactory
for simplified creation of logger instances (especially when creating many logger instances that have different traceId
s)
v2.0.4
Connections to Logentries are now cached. Creating multiple LogEntriesLogger
instances with the same API token will create only one connection to the Logentries service, that is shared between all of these instances. One connection to the Logentries service will be made for each distinct API token that is used.