log-segment
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -72,3 +72,2 @@ 'use strict' | ||
* @param {Object} params | ||
* @param {string} params.template default '{marker} [{timestamp}] {message}' | ||
*/ | ||
@@ -78,5 +77,2 @@ const __init = function (params) { | ||
__setLevels(__levels) | ||
if (params && params.template) { | ||
__setTemplate(params.template) | ||
} | ||
} | ||
@@ -83,0 +79,0 @@ |
{ | ||
"name": "log-segment", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "logger with partition", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -76,3 +76,3 @@ # log-segment | ||
segments: { '*': { color: 'white' } }, | ||
template: '{marker} [{timestamp}] {message}', | ||
format: '{marker} [{timestamp}] {message}', | ||
enabled: { segments: '*', levels: '*' } | ||
@@ -223,3 +223,3 @@ } | ||
Different behaviour for each level: | ||
- disable not interesting parts: success level, template rendering | ||
- disable not interesting parts: success level | ||
- different file for each type: *info, warning, error* | ||
@@ -226,0 +226,0 @@ and remove marks |
23150
536