Skip to content

v0.8.0

Choose a tag to compare

@mobsense mobsense released this 16 Jul 08:07
· 71 commits to main since this release

Major Initial Release

SenseLogs is a fast log library designed exclusively for serverless apps using NodeJS.

While there are many other good logging libraries, that claim to be fast, they were not designed for serverless and so are bigger and slower than necessary.

Serverless apps have special requirments like minimizing cold-start time, dynamic log level and filtering control without redploying and being able to capture detailed context and request information without modifying your app. SenseLogs is designed to do this and more.

This is the first public release of senselogs. This module has been used for a while as the logging library for the SenseDeep serverless developer studio.

Change Log

  • Initial release on GitHub and NPM

Features

  • Extremely fast initialization time to shorten cold-starts.
  • Clean, readable small code base (< 500 lines).
  • Emits logs in JSON with rich context.
  • Dynamic log control to change log levels and filters without redeploying.
  • Log snapshots to facilitate remote debugging without redeploying.
  • Log sampling to emit increased logs for a percentage of requests.
  • Stack capture for uncaught exceptions.
  • Flexible log levels and filters.
  • Inheriting child log instances for per-module logging.
  • For local debugging, emits in human readable formats.
  • APIs to emit CloudWatch custom metrics using EMF.
  • Integrates with SenseDeep developer studio.
  • No dependencies.
  • Full TypeScript support.

Fixes

  • N/A

See