loggz
v0.0.2
Published
This SDK provides a simple and efficient way to integrate the Loggz, logging service into your Node.js or TypeScript applications.
Downloads
2
Maintainers
Readme
Features
- Built with a focus on performance and usability
- Use in native HTML form
- Simplify number and field formatting
Install
npm install loggz
Quickstart
To use the library, import the loggz class and create an instance with your API key:
import { Loggz } from 'loggz';
const loggz = new Loggz("YOUR_TOKEN_HERE");
Then, you can use the notify event method to send a notification:
loggz.publish({
name: "Approved purchase",
description: "A purchase has been approved.",
channel: "sales",
status: "success",
notify: true,
properties: {
"my-property": "my-property-value",
},
message:
"[Link](https://loggz.co)",
});
Contributors
Thank you for being amazing people!