MCPcopy
hub / github.com/prisma/prisma / log

Method log

packages/query-plan-executor/src/log/logger.ts:28–30  ·  view source on GitHub ↗

* Logs a message with the specified level and attributes. * * @param level The log level * @param message The message to log * @param attributes Optional key-value pairs to include with the log event

(level: LogLevel, message: string, attributes?: ExtendedAttributes)

Source from the content-addressed store, hash-verified

26 * @param attributes Optional key-value pairs to include with the log event
27 */
28 log(level: LogLevel, message: string, attributes?: ExtendedAttributes): void {
29 this.sink.write(new LogEvent(level, message, attributes))
30 }
31
32 /**
33 * Logs a debug message.

Callers 15

debugMethod · 0.95
queryMethod · 0.95
infoMethod · 0.95
warnMethod · 0.95
errorMethod · 0.95
constructorMethod · 0.80
test.tsFile · 0.80
client.tsFile · 0.80
test.tsFile · 0.80
test.tsFile · 0.80
test.tsFile · 0.80
mainFunction · 0.80

Calls 1

writeMethod · 0.65

Tested by 14

mainFunction · 0.64
mainFunction · 0.64
runBenchmarksFunction · 0.64
seedDatabaseFunction · 0.64
setupFunction · 0.64
runBenchmarksFunction · 0.64
printSizeFunction · 0.64
testFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64