9.28.0 • Published 8 months ago

@drenso/homey-log v9.28.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Homey Log

npm NPM pages-build-deployment

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

Documentation

Documentation is available at https://drenso.github.io/homey-log.

Related Modules

Installation

npm install --save @drenso/homey-log

Getting started

In env.json, add the Sentry URL. If you would like to send the logs to Sentry also during development, set force log to 1.

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

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

const { Log } = require('@drenso/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.

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.

3.0.0

This version has replaced the raven SDK with @sentry/node version 8. If you were using the basic configuration, nothing has changed.

  • If you were passing custom options, you will need to review them.
  • setExtra is deprecated by Sentry and has been removed.

8. / 9.

This package will now follow the Sentry version included.

9.23.0

8 months ago

9.24.0

8 months ago

9.28.0

8 months ago

9.25.0

8 months ago

9.4.0

11 months ago

9.27.0

8 months ago

9.26.0

8 months ago

9.25.1

8 months ago

9.3.0

11 months ago

9.20.0

9 months ago

9.21.0

9 months ago

9.22.0

9 months ago

8.38.0

1 year ago

8.37.1

1 year ago

8.39.0

1 year ago

8.54.0

12 months ago

9.16.0

9 months ago

9.17.0

9 months ago

9.16.1

9 months ago

9.18.0

9 months ago

9.19.0

9 months ago

8.40.0

1 year ago

9.13.0

10 months ago

8.41.0

1 year ago

9.14.0

9 months ago

9.15.0

9 months ago

8.49.0

1 year ago

8.47.0

1 year ago

8.37.1-cjs

1 year ago

8.44.0

1 year ago

9.2.0

11 months ago

8.43.0

1 year ago

9.1.0

12 months ago

9.0.1

12 months ago

8.42.0

1 year ago

8.36.0

1 year ago

3.0.0-beta.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago