loglevel-colored-prefix
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-3 • Public • Published

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!

Package Sidebar

Install

npm i loglevel-colored-prefix

Weekly Downloads

141

Version

0.1.0-3

License

CC0-1.0

Unpacked Size

4.99 kB

Total Files

5

Last publish

Collaborators

  • daviortega