@teamsparta/nodejs-external-logger
v1.0.0
Published
## Supports
Downloads
1,025
Maintainers
Keywords
Readme
External Backend(NodeJS) Logger
Supports
Amplitude, Hackle, MongoDB
Need
Node.js 18 or higher to use built-in fetch
Usage
Type-safe by event schema
for example:
interface Events {
event_1: {
prop_a: string;
prop_b: number;
};
event_2: {
prop_c: string;
};
}
const eventTracker = initExternalLogger<Events>(options);
// forcibly predefined schema key
eventTracker("event_1", properties /** typed properties by key */);