0.1.2 • Published 6 years ago
logreio v0.1.2
Logre.IO JS Driver
JS driver to send logs to Logre.IO.
Installation
$ npm install logreio
# or
$ yarn add logreioQuick 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()