log-pattern
v0.0.13
Published
Pattern-defined log formatter
Downloads
10
Readme
log-pattern
Formatter for logging output, targeted at winston
Description
...
Installation
npm install --save log-pattern
Usage
var LogPattern = require('log-pattern');
fmt = LogPattern.formatter({ pattern: '%date{yyyy} - %uc(%path)' });
console.log(fmt.format({filename: '/bar/quux'}))
// -> "2016 - /BAR/QUUX"
Macros
See MACROS.md