logreio
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Logre.IO JS Driver

JS driver to send logs to Logre.IO.

Twitter Follow

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()

Package Sidebar

Install

npm i logreio

Weekly Downloads

3

Version

0.1.2

License

ISC

Unpacked Size

30 kB

Total Files

6

Last publish

Collaborators

  • logreio