https://github.com/apex/up.js
Up application companion library for Node and the browser
https://github.com/apex/up.js
Last synced: 5 months ago
JSON representation
Up application companion library for Node and the browser
- Host: GitHub
- URL: https://github.com/apex/up.js
- Owner: apex
- Created: 2018-03-02T13:50:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T14:54:41.000Z (about 7 years ago)
- Last Synced: 2024-05-21T07:26:08.730Z (11 months ago)
- Language: JavaScript
- Homepage: https://up.docs.apex.sh/
- Size: 42 KB
- Stars: 58
- Watchers: 9
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
[Up](https://github.com/apex/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](https://up.docs.apex.sh/#guides.mastering_logging.json) 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:
```js
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`---
[](https://semaphoreci.com/tj/up-js)

