Start to log everything in just few clicks
- Easy to install on your website/app
- Log with different sverity level (info, debug, warning, error, fatal)
- Differentiate logs with channels
- More coming soon
$ npm i @crashdeck/crashdeck
import Crashdeck from "crashdeck";
Crashdeck.init({
secretKey: "<secret-key>",
bucketId: "<bucket-id>",
});
Crashdeck do not collect the errors automatically. If you want to enable this feature, use the following code:
Crashdeck.autoCollectErrors(true);
Start to push logs into your bucket
Crashdeck.info({
message: "This is a info log",
});
Crashdeck.debug({
message: "This is a debug log",
});
Crashdeck.warning({
message: "This is a warning log",
});
Crashdeck.error({
message: "This is a error log",
});
Crashdeck.fatal({
message: "This is a fatl log",
});