pino-colada
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -0,0 +0,0 @@ #! /usr/bin/env node |
@@ -0,0 +0,0 @@ 'use strict' |
@@ -0,0 +0,0 @@ var pino = require('pino-http')() |
@@ -0,0 +0,0 @@ var merry = require('merry') |
@@ -71,3 +71,3 @@ var prettyBytes = require('prettier-bytes') | ||
output.push(formatDate()) | ||
output.push(formatDate(obj.time || Date.now())) | ||
output.push(formatLevel(obj.level)) | ||
@@ -107,4 +107,4 @@ output.push(formatNs(obj.ns)) | ||
function formatDate () { | ||
var date = new Date() | ||
function formatDate (instant) { | ||
var date = new Date(instant) | ||
var hours = padLeft(date.getHours().toString(), 2, '0') | ||
@@ -111,0 +111,0 @@ var minutes = padLeft(date.getMinutes().toString(), 2, '0') |
{ | ||
"name": "pino-colada", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "cute ndjson logger for pino", | ||
@@ -40,2 +40,2 @@ "license": "MIT", | ||
} | ||
} | ||
} |
@@ -26,2 +26,3 @@ # pino-colada 🍹 | ||
const logger = pino({ | ||
prettyPrint: {}, | ||
prettifier: require('pino-colada') | ||
@@ -28,0 +29,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57948
57