logreio
v0.1.2
Published
JS Driver for Logre.IO
Downloads
3
Maintainers
Readme
Logre.IO JS Driver
JS driver to send logs to Logre.IO.
Installation
$ npm install logreio
# or
$ yarn add logreio
Quick start
import LogreIOClient from 'logreio'
// or
const LogreIOClient = require('logreio').default
const logger = new LogreIOClient({
id: '266544239593512423',
key: '******'
})
Usage
logger.info('Info message!')
logger.info({
message: 'Info message!',
host: 'myapp.com',
...otherInfos
})
Available severities
You can you some severities to add urgency meaning to your logs. The available severities are:
- Debug
logger.debug()
- Info
logger.info()
- Warn
logger.warn()
- Error
logger.error()
- Fatal
logger.fatal()