MCPcopy Create free account
hub / github.com/FormidableLabs/pino-lambda / format

Method format

src/formatters/structured.ts:10–17  ·  view source on GitHub ↗
({ awsRequestId, level, ...data }: LogData)

Source from the content-addressed store, hash-verified

8 */
9export class StructuredLogFormatter implements ILogFormatter {
10 format({ awsRequestId, level, ...data }: LogData): string {
11 return JSON.stringify({
12 timestamp: new Date().toISOString(),
13 level: formatLevel(level),
14 requestId: awsRequestId,
15 message: data,
16 });
17 }
18}

Callers

nothing calls this directly

Calls 1

formatLevelFunction · 0.90

Tested by

no test coverage detected