0.0.2 • Published 3 years ago

@stud2design/marker v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Marker

A logging utility library for adding minimal info when used with your express server.

APIs

  • interceptor A middleware for our express server to intercept all requests and response.

  • error For logging error message, with context as second argument ( Provides call stack trace ).

  • debug Equivalent of console.log for developers. For development use only, when in production these logs won’t be available even if developer forgets to remove or comment.

  • info Alias of console.info

  • Alert currently part of interceptor For starters alerts are send to Stats D for every request with payload url and statusCode.

Batching

The library comes with feature to batch the log functions call, using process env variable MARKER_BATCH_LIMIT, the default value is 0.

TODO

Unit Test Cases Beautification Stats D config

0.0.2

3 years ago

0.0.1

3 years ago