Frontend
All frontend integrations on one place.
Installation
You don't need to install @types/errorlogger-sdk.
Types are shipping with SDK.
You will get autocomplete / intellisense in JS files.
DSN's can be generated at https://error-logger.netlify.app/
- ErrorLoggerClientOptions
Short summary of ErrorLoggerClientOptions:
Property
Type
Description
dsn
string
Represents an api key which authorizes you with API
environment
string
Represents in which environment you want to log errors. Valid options (development | production)
data
object
Additional data you want to log. EX. Network connection
VueJS
Create.env
file and add your DSN (Data Source Name).
Go to main.js
and add following lines.
You are good to go. Happy coding :)!
React
Create.env
file and add your DSN (Data Source Name).
Go to index.js
and add following lines.
You are good to go. Happy coding :)!
Angular
Go tosrc/environments/environment.[prod].ts and add DSN to environvment
Go to app.module.ts and add following lines.
You are good to go. Happy coding :)!
Last updated