app-tracker
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

App Tracker for Web Applications

Installation

npm i app-tracker

Getting Started

How to use

import { AppTracker, AppTrackerService } from "app-tracker";

const appTrackerService: AppTrackerService = AppTracker.init("API_KEY", configuration);

this.appTrackerService.debug(message, optionalParams);

Configuration

Property Type Default Description
sendLogsInDevelopment boolean false Should logs be sent to the App Tracker during development?
logInConsole boolean false Should logs also be sent to the console
endpointUrl string App Tracker URI Doesn't need to be customized unless you host App Tracker yourself
maxSendTries number 5 How often to try to send to the server if an error occurs
maxLogsCount number 10 How many logs should be stored until they are sent to the server
logLevel LogType[] [LogType.error] Defines which log types should be sent to the server
sendLogsByTypesImmediately LogType[] [LogType.error, LogType.critical] Which LogTypes should be sent directly to the server
userAgentOrOs any Please pass: Web -> navigator.userAgent, Node -> os (from require('os'))

FAQ

Q: Where do I get my API KEY? A: Register with App Tracker and create your application there.

Package Sidebar

Install

npm i app-tracker

Weekly Downloads

10

Version

2.1.3

License

ISC

Unpacked Size

12.1 kB

Total Files

10

Last publish

Collaborators

  • wigtertainment