Miss any of our Open RFC calls?Watch the recordings here! »

homey-log

2.0.1 • Public • Published

homey-log

Introduction

This module can be used in a Homey App to send events to Sentry.

Note: homey-log@2.0.0 and higher is only compatible with Homey Apps SDK version 3. If you are still on version 2, please use homey-log@1.0.6 or lower.

Installation

npm install --save homey-log

Getting started

In env.json, add the Sentry URL:

{
    "HOMEY_LOG_URL": "https://foo:bar@sentry.io/123456"
}

In app.js, include the library and create a new Log instance:

const { Log } = require('homey-log');
 
class MyApp extends Homey.App {
    onInit() {
        this.homeyLog = new Log({ homey: this.homey });
    }
}

Notes

  • When your app crashes due to an uncaughtException or unhandledRejection, this will automatically be sent to Sentry.
  • When running your app with homey app run events will not be sent to Sentry.

Docs

See https://athombv.github.io/node-homey-log

Changelog

2.0.0

This version is only SDK version 3 compatible. It now requires a different way of setting up the Log instance, see Getting Started.

Keywords

none

Install

npm i homey-log

DownloadsWeekly Downloads

14

Version

2.0.1

License

ISC

Unpacked Size

44 kB

Total Files

5

Last publish

Collaborators

  • avatar