Skip to content

somata/somata-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.s 'somethingHappened', "Something good happened"
slog.e 'somethingHappened', "Something terrible happened"

About

Logger service for Somata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published