Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktont/bunyan-localtime
bunyan log with the local time instead of UTC
https://github.com/ktont/bunyan-localtime
Last synced: about 24 hours ago
JSON representation
bunyan log with the local time instead of UTC
- Host: GitHub
- URL: https://github.com/ktont/bunyan-localtime
- Owner: ktont
- Created: 2019-10-17T06:38:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-17T07:15:02.000Z (about 5 years ago)
- Last Synced: 2024-11-07T00:49:49.774Z (14 days ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
}
```