@sailplane/logger
TypeScript icon, indicating that this package has built-in type declarations

5.0.1 • Public • Published

@sailplane/logger - CloudWatch and serverless-offline friendly logger

What?

Logger adds context and when needed, timestamps and JSON formatting, to log output.

This is part of the sailplane library of utilities for AWS Serverless in Node.js.

Why?

Sadly, console.log is the #1 debugging tool when writing serverless code. Logger extends it with levels, timestamps, context/category names, and object formatting. It's just a few small incremental improvements, and yet together takes logging a leap forward. It'll do until we can have a usable cloud debugger.

There are far more complicated logging packages available for Javascript; but sailplane is all about simplicity, and this logger gives you all that you really need without the bulk.

How?

See the docs for usage and examples.

Package Sidebar

Install

npm i @sailplane/logger

Weekly Downloads

1,135

Version

5.0.1

License

Apache-2.0

Unpacked Size

34.4 kB

Total Files

23

Last publish

Collaborators

  • itprokyle
  • ttarhan
  • adamfanello