Skip to content

fongelias/loudmouth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loudmouth

Telemetry module for Node

Usage

Design

Initialize client Client listens for loudmouth events Logger emits loudmouth events

Client

Event listener with a one time setup. Listens for event 'loudmouth-log'. Sends it to a passed url with an optional API key argument.

Logger

Event emitter that emits event 'loudmouth-log'. Takes in an object as an argument to emit with the logging event, passing it to the client's to send. Not a class, like the client, just an object that points to various functions.

Each trace event has a log level, local timestamp, and a uri-encoded message Each request event has a request type, endpoint uri, and an optional uri-encoded message Each response type has a response code, endpoint uri, and an optional uri-encoded message

About

Telemetry module for Node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published