MCPcopy
hub / github.com/Unitech/pm2 / timestamp

Function timestamp

lib/Utility.js:99–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 if (cst.PM2_LOG_DATE_FORMAT && typeof cst.PM2_LOG_DATE_FORMAT == 'string') {
98 // Generate timestamp prefix
99 function timestamp(){
100 return `${dayjs(Date.now()).format(cst.PM2_LOG_DATE_FORMAT)}:`;
101 }
102
103 var hacks = ['info', 'log', 'error', 'warn'], consoled = {};
104

Callers 1

Utility.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…