@utilitywarehouse/uw-lib-logger.js

2.0.0 • Public • Published

uw-lib-logger.js

Tiny wrapper around pino offering some better 'defaults'.

Changes

ERRORs will be printed to SRDERR, everything else to STDOUT.

'level' has been translated into a string under 'severity' key.

Standard serializer for req field.

Custom error serializer for err field. Will display basic error information as well as 'previous' error if key exists on processed error (see example);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    3
    • latest

Version History

Package Sidebar

Install

npm i @utilitywarehouse/uw-lib-logger.js

Weekly Downloads

34

Version

2.0.0

License

MIT

Unpacked Size

5.24 kB

Total Files

6

Last publish

Collaborators

  • uw-deploy