JSPM

  • Created
  • Published
  • Downloads 10796
  • Score
    100M100P100Q138544F
  • License Apache-2.0

Logger for FCL-JS

Package Exports

  • @onflow/util-logger
  • @onflow/util-logger/dist/util-logger.js
  • @onflow/util-logger/dist/util-logger.module.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@onflow/util-logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@onflow/util-logger

Logger for FCL-JS.

Status

  • Last Updated: March 30 2022
  • Stable: Yes
  • Risk of Breaking Change: No

Install

npm install --save @onflow/util-logger

Usage

Logger Levels

Name Value
error 1
warn 2
log 3
info 4
debug 5
import * as logger from "@onflow/util-logger"

// This will fire if the config "logger.level" value is set to the error level or above
logger.log({
  title: "Title of error", 
  message: "Message body", 
  level: logger.LEVELS.error
})