@exivar/peep

NodeJs error tracking to performance monitoring

Usage no npm install needed!

<script type="module">
  import exivarPeep from 'https://cdn.skypack.dev/@exivar/peep';
</script>

README

Exivar Peep

Installation

Install peep using npm or yarn

npm install @exivar/peep
# or
yarn add @exivar/peep

Usage

Create a client conroller using your clientId and token. Obtain your credentials from https://peep.exivar.com.

Using Require

const peep = require('@exivar/peep').default;

Or Using ES Import

import peep from '@exivar/peep';
const client = peep({
  clientId: <clientId>,
  token: <token>
})

Create Log

Create logs using the following commands

  const response = await peep.log({
    type: <log_options>,
    message: <string>,
    data: <object> //meta data
  })

Log Options

log option can have any of the following values

value Description
log default log
error error log
info info log