MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / formatDateLog

Function formatDateLog

src/config/logger.config.ts:7–11  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

5const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
6
7const formatDateLog = (timestamp: number) =>
8 dayjs(timestamp)
9 .toDate()
10 .toString()
11 .replace(/\sGMT.+/, '');
12
13enum Color {
14 LOG = '\x1b[32m',

Callers 1

consoleMethod · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected