MCPcopy Index your code
hub / github.com/ampproject/amphtml / log

Function log

build-system/common/logging.js:21–25  ·  view source on GitHub ↗

* Logs messages with a timestamp. The timezone suffix is dropped. * @param {...any} messages

(...messages)

Source from the content-addressed store, hash-verified

19 * @param {...any} messages
20 */
21function log(...messages) {
22 const timestamp = new Date().toTimeString().split(' ')[0];
23 const prefix = `[${gray(timestamp)}]`;
24 console.log(prefix, ...messages);
25}
26
27/**
28 * Sets the logging prefix for the ongoing PR check job

Callers 15

writeDiffOrFailFunction · 0.70
execOrThrowFunction · 0.70
logLocalDevFunction · 0.70
logOnSameLineFunction · 0.70
updateDepsFunction · 0.70
updateSubpackagesFunction · 0.70
getFilesFromArgvFunction · 0.70
getFilesToCheckFunction · 0.70
usesFilesOrLocalChangesFunction · 0.70
runNpmChecksFunction · 0.70
verifyBundle_Function · 0.50
formatExtractedMessagesFunction · 0.50

Calls 1

logMethod · 0.45

Tested by

no test coverage detected