2.1.2 • Published 5 years ago

woodcutter v2.1.2

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

WoodCutter

WoodCutter is a small logger based on winston and developed in TypeScript.

Install

npm install --save woodcutter

Run tests

npm run test

Usage

import {LogLevel} from '../lib/log-level.enum';
import {WoodCutter} from '../lib/woodcutter';

function main() {
  const woodcutter = new WoodCutter({
    level: LogLevel.SILLY
  });
  woodcutter.debug("Hey debug", 5, "test", {"hello": "world"});
  woodcutter.info("Hey info");
  woodcutter.error("Hey error");
  woodcutter.verbose("Hey verbose");
  woodcutter.warn("Hey warn");
  woodcutter.silly("Hey silly");
  woodcutter.log('verbose', "Hey log info");
}

main();

Console output:

woodcutter logs screenshot

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago