https://github.com/oschweitzer/woodcutter
A small logger based on winston and developed in TypeScript
https://github.com/oschweitzer/woodcutter
logging nodejs npm typescript winston
Last synced: about 1 year ago
JSON representation
A small logger based on winston and developed in TypeScript
- Host: GitHub
- URL: https://github.com/oschweitzer/woodcutter
- Owner: oschweitzer
- License: apache-2.0
- Created: 2018-01-20T15:07:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T21:01:12.000Z (over 3 years ago)
- Last Synced: 2025-04-22T01:04:04.206Z (about 1 year ago)
- Topics: logging, nodejs, npm, typescript, winston
- Language: TypeScript
- Homepage:
- Size: 259 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WoodCutter
WoodCutter is a small logger based on winston and developed in TypeScript.
## Install
```bash
npm install --save woodcutter
```
## Run tests
```bash
npm run test
```
## Usage
```typescript
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:
