mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-29 21:15:16 +02:00
14 lines
308 B
JavaScript
14 lines
308 B
JavaScript
'use strict';
|
|
|
|
// Changed 2026-09-23 (C-1): emit request logs as JSON lines so the log
|
|
// pipeline can parse them without regexes.
|
|
function logRequest(req) {
|
|
console.log(JSON.stringify({
|
|
method: req.method,
|
|
url: req.url,
|
|
at: new Date().toISOString(),
|
|
}));
|
|
}
|
|
|
|
module.exports = { logRequest };
|