1.0.14 • Published 3 months ago

@logbun/node v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Links

Usage

To integrate the Logbun SDK into your project, follow these steps:

  1. Install the Logbun SDK using npm:

    npm install @logbun/node
  2. Import Logbun in your JavaScript file:

    import Logbun from '@logbun/node';
  3. Initialize Logbun by calling Logbun.init(options) as early as possible after loading the page. This initializes the SDK and hooks into the environment.

    Logbun.init({
      apiKey: '{{API_KEY}}',
      // ... other options
    });

Manual Events

You can manually send events using the notify function provided by @logbun/node. Note that these functions will not perform any action until you have called Logbun.init():

import Logbun from '@logbun/node';

// Capture exceptions, messages, or manual events
Logbun.notify('Rick');
Logbun.notify(new Error('Roll'));

Make sure to replace {{API_KEY}} with your actual Logbun API key.

For more details on configuration options and additional features, refer to the official documentation.

1.0.14

3 months ago

1.0.13

3 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.11

3 months ago

1.0.10

3 months ago

1.0.12

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.0

5 months ago