Skip to content

Releases: fullstack-build/tslog

v2.6.4

09 Aug 19:33
Compare
Choose a tag to compare

v2.6.3...v2.6.4

v2.6.3

17 Jul 00:54
Compare
Choose a tag to compare
  • Remove example from build 36c1973

v2.6.2...v2.6.3

Bugfix Release

16 Jul 16:07
Compare
Choose a tag to compare
  • Merge pull request #35 from fullstack-build/development c6b41fb
  • Update to ESlint 7 and other dependencies f4fe77d
  • Bugfix: #34 & #33 28e4170
  • Merge pull request #32 from thomaschampagne/patch-1 dcb127f
  • Fix snippet documentation issue 373ffde

v2.6.1...v2.6.2

v2.6.1

07 Jul 23:17
Compare
Choose a tag to compare

v2.6.0...v2.6.1

New type: hidden

29 Jun 18:01
Compare
Choose a tag to compare

Child loggers, RequestId, Secrets masking and more

20 Jun 23:33
Compare
Choose a tag to compare

This is a jam-packed release 🎉

Don't underestimate this minor version jump, it's only due to semver and its backward compatibility reasons. ;-).

  • Child Loggers: Use getChildLogger to create a child logger based on the current instance, inherit all its settings including prefixes, and overwrite the ones you would like to change in this child. Makes it possible to follow a request all the way down (s. below requestId)
  • Runtime settings changes: Use setSettings() to change settings during runtime. Changes will also propagate to every potential child logger but can also be overwritten along the way. Prefixes will be enhanced instead of overwritten.
  • requestId: Use async_hooks (e.g. AsyncLocalStorage) to follow a request all the way down the promise chain (Example: Display all logs from Server down to DB)
  • Mask secrets: Use maskValuesOfKeys & maskStrings to prevent tslog from printing secrets and sensitive information like passwords, secrets, api keys and Authorization Bearer
  • Prefix: prefix Prefix every log message with additional attributes that are also inherited to child loggers
  • Types: displayTypes: true Display types for all variables passed to tslog, eg. string: test number: 123

Execute RequestId function for every log

20 Jun 14:41
Compare
Choose a tag to compare
v2.5.0-1

2.5.0-1

Child logger, Secrets masking, requestID and more

19 Jun 17:33
Compare
Choose a tag to compare

Don't underestimate its minor version jump that is due to backward compatibility reasons. ;-).

  • Child Loggers: Use getChildLogger to create a child logger based on the current instance, inherit all its settings including prefixes, and overwrite the ones you would like to change in this child. Makes it possible to follow a request all the way down (s. below requestId)
  • Runtime settings changes: Use setSettings() to change settings during runtime. Changes will also propagate to every potential child logger but can also be overwritten along the way. Prefixes will be enhanced instead of overwritten.
  • requestId: Use async_hooks (e.g. AsyncLocalStorage) to follow a request all the way down the promise chain (Example: Display all logs from Server down to DB)
  • Mask secrets: Use maskValuesOfKeys & maskValuesOfKeys to prevent tslog from printing secrets and sensitive information like passwords, secrets, api keys and Authorization Bearer
  • Prefix: prefix Prefix every log message with additional attributes that are also inherited to child loggers
  • Type: displayTypes: true Display types for all variables passed to tslog, eg. string: test number: 123

Generate traceId on setSettings()

16 Jun 21:23
Compare
Choose a tag to compare

Add TraceId that can either be a string or a function

16 Jun 20:21
Compare
Choose a tag to compare