Package Exports
- up
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (up) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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. 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