pushover-logger

Uses pushover to log errors directly to your phone (or any other connected device) as notifications.

Usage no npm install needed!

<script type="module">
  import pushoverLogger from 'https://cdn.skypack.dev/pushover-logger';
</script>

README

pushover-logger

Uses pushover to log errors directly to your phone (or any other connected device) as notifications.

Setup

Needs the following environment variables:

PUSHOVER_USER_KEY=a...
PUSHOVER_TOKEN=b...

API

import logger from 'pushover-logger'
logger.setTitle('App Name')

// will not use pushover, but `console.log` instead
logger.enableDebug()

// write log
logger.log('message')
logger.log({
    message: 'message',
    sound: 'intermission',
    // any other option mentioned in PUSHOVER
})