mirror of
https://github.com/pinojs/pino.git
synced 2025-12-08 20:36:13 +00:00
20 lines
288 B
JavaScript
20 lines
288 B
JavaScript
'use strict'
|
|
|
|
function getNoTime () {
|
|
return ''
|
|
}
|
|
|
|
function getTime () {
|
|
return ',"time":' + Date.now()
|
|
}
|
|
|
|
function getSlowTime () {
|
|
return ',"time":"' + (new Date()).toISOString() + '"'
|
|
}
|
|
|
|
module.exports = {
|
|
getNoTime: getNoTime,
|
|
getTime: getTime,
|
|
getSlowTime: getSlowTime
|
|
}
|