1.0.1 • Published 5 years ago

bunyan-localtime v1.0.1

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

bunyan-localtime

Bunyan is a simple logging library. Too simple to log local time format.

Bunyan dependence no datetime-library at all, so it can't.

This file(this module) override Bunyan's UTC time fileds with local time;

Usage

const bunyan = require('bunyan-localtime');

let logger = bunyan.createLogger({
  name: 'log',
});
logger.info('abc123');

output

{
  "name":"log",
  "level":30,
  "time":"2019-10-17 15:10:09.536",
  "msg":"abc123",
  "v":0
}
1.0.1

5 years ago

1.0.0

5 years ago