1.0.12 • Published 4 years ago

consolidated-logging v1.0.12

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

consolidated-logging

Installation

npm install consolidated-logging

Usage

import ConsolidatedLogger from 'consolidated-logging';

const consolidatedLogger = new ConsolidatedLogger({
    apiHost: 'http://apihost.com',
});

API

Tracking one time custom events:

sendCustomLogEvent({ type, data })


Tracking the duration of time an active event spanned.

startCustomTimeDurationLogEvent({ type, data })
stopCustomTimeDurationLogEvent({ type, data })


Built-in supported events:

Each time the value of the input field changes:
setupInputChangeLogEvent({ selector, data })

The amount of time the user is focused on a given input field:
setupInputFocusEvent({ selector, data })

Other considerations:

All events are fired assuming that the user is online and connected to the internet. In the event, that this is not the case, then the events are persisted locally until the user comes back online.

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago