App Tracker for Web Applications
Installation
npm i app-tracker
Getting Started
- Install Package
- Register on App Tracker
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.