1.0.5 • Published 3 years ago

@codeitwithcoffee/logglytics v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

LOGGER

Installation

npm install @codeitwithcoffee/logglytics

or

yarn add @codeitwithcoffee/logglytics

Getting api key

  • Go to Logglytics Console
  • Create a project
  • Open that project
  • Click config button on top right of the dashboard
  • Copy the configuration snippet

Javascript SDK Usage

Import the logglytics

// ES6
import { default as logglytics } from '@codeitwithcoffee/logglytics';

Create a config object

Create a config object from the snipper you copied in the console.

const config = {
  apiKey: "apikey",
  projectId: "123456",
};

Create a logger instance

const logger = logglytics(config);

Log messages

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....

Push events

logger.event("BUTTON_1");

// Done....

TODO:

  • More improvements to Javascript SDK
  • New SDK for Android
  • New improved Console

Happy coding:)

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago