MCPcopy
hub / github.com/vercel/next.js / writeLine

Function writeLine

packages/next/src/server/dev/log-requests.ts:200–202  ·  view source on GitHub ↗
(text: string, indentationLevel = 0)

Source from the content-addressed store, hash-verified

198}
199
200function writeLine(text: string, indentationLevel = 0): void {
201 process.stdout.write(` ${'│ '.repeat(indentationLevel)}${text}\n`)
202}
203
204function truncate(text: string, maxLength: number): string {
205 return maxLength !== undefined && text.length > maxLength

Callers 2

logIncomingRequestsFunction · 0.85
logFetchMetricFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected