somata-logger

0.0.2 • Public • Published

somata-logger

Logger service and a client helper library to publish to this service.

Usage

Require the client library and give it a convenient name:

slog = require 'somata-logger'

Basic tagged output:

# Arguments: tag, string 
slog 'doSomething'"Something was done."

Tagged output with data:

# Arguments: tag, string, data 
slog 'getSomething'"Something was gotten: #{ something.id }"something

Use .s, .i, .d, .e, .w for success, info, debug, error, and warning log "kinds":

slog.'somethingHappened'"Something good happened"
slog.'somethingHappened'"Something terrible happened"

Readme

Keywords

Package Sidebar

Install

npm i somata-logger

Weekly Downloads

2

Version

0.0.2

License

none

Last publish

Collaborators

  • spro