JSPM

loglevel-colored-prefix

0.1.0-3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q50354F
  • License CC0-1.0

Simple wrapper around loglevel to add color tags.

Package Exports

  • loglevel-colored-prefix

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 (loglevel-colored-prefix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

loglevel-colored-prefix

Simple wrapper around loglevel to add color tags. Written in TypeScript. It is not sophisticated and it is experimental. But I think it does the trick.

Usage

import * as Logger from "loglevel-colored-prefix";

const logLevel = 'INFO'
const logger = new Logger(logLevel)
const log = logger.getLogger('logThisStuff')

log.info('Hello there!')
// 16:10:09 :: INFO :: logThisStuff : Hello there!