npm install @codeitwithcoffee/logglytics
or
yarn add @codeitwithcoffee/logglytics
- Go to Logglytics Console
- Create a project
- Open that project
- Click config button on top right of the dashboard
- Copy the configuration snippet
// ES6
import { default as logglytics } from '@codeitwithcoffee/logglytics';
Create a config object from the snipper you copied in the console.
const config = {
apiKey: "apikey",
projectId: "123456",
};
const logger = logglytics(config);
logger.i("Info message");
logger.d("Debug message");
logger.e("Error message");
logger.t("Trace");
logger.w("Warning message");
logger.f("Fatal message");
logger.log("INFO", "Info");
// Done....
logger.event("BUTTON_1");
// Done....
- More improvements to Javascript SDK
- New SDK for Android
- New improved Console
Happy coding:)