0.0.2 • Published 3 years ago
@stud2design/marker v0.0.2
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 payloadurl
andstatusCode
.
Batching
The library comes with feature to batch the log functions call, using process env variable MARKER_BATCH_LIMIT
, the default value is 0.