Skip to content
forked from apex/up.js

Up application companion library for Node and the browser

Notifications You must be signed in to change notification settings

yuttasakcom/up.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Up application companion library for Node and the browser, providing out of the box solutions for authentication, logging, messaging and more.

Installation

$ npm install up

Logging

Up supports structured logging in the form of JSON written to stdout, the rest is handled by Up. To make this process a bit cleaner, up.js provides a Logger as shown here:

const { Logger } = require('up')
const log = new Logger()

log.error('user login attempt failed', { user: 'tobi' })
log.info('user login', { user: 'tobi' })
log.info('user logout', { user: 'tobi' })

The following severity levels are available:

  • debug
  • info
  • warn
  • error
  • fatal

Build Status

About

Up application companion library for Node and the browser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Makefile 2.5%