0.2.0 • Published 2 years ago

scrimple-logger v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
2 years ago

Simple client side logging package.

Learn more at https://scrimple-web.netlify.app/

Install

npm i scrimple-logger --save

Usage

Scrimple logger is an extremely simple way of capturing client side logs. To view your logs you must sign up at https://scrimple-web.netlify.app/ and generate an API key. Use the API key when initializing the logger. All the logs will be available at https://scrimple-web.netlify.app/

  import {slog} from "scrimple-logger"
  
  const logger = new slog("your-application-key")
  
  logger.info("My first log!");
  try{
    throw new Error("An error has occurred!");
  }
  catch(err){
    logger.error("My first error log.", err)
  }

Options

disableConsoleLogs

Type: boolean

Default: false

Prevents log/warn/error/etc... statements from execution equivalent console command.

0.2.0

2 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago