Skip to content

crashdeck/js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crashdeck.io

Start to log everything in just few clicks

Features

  • Easy to install on your website/app
  • Log with different sverity level (info, debug, warning, error, fatal)
  • Differentiate logs with channels
  • More coming soon

Installing

$ npm i @crashdeck/crashdeck

Example

Initialization

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

info

Crashdeck.info({
  message: "This is a info log",
});

debug

Crashdeck.debug({
  message: "This is a debug log",
});

warning

Crashdeck.warning({
  message: "This is a warning log",
});

error

Crashdeck.error({
  message: "This is a error log",
});

fatal

Crashdeck.fatal({
  message: "This is a fatl log",
});

About

Start to log everything in just few clicks

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy