Uses pushover to log errors directly to your phone (or any other connected device) as notifications.
Needs the following environment variables:
PUSHOVER_USER_KEY=a...
PUSHOVER_TOKEN=b...
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
})