MCPcopy
hub / github.com/prisma/prisma / CompositeSink

Class CompositeSink

packages/query-plan-executor/src/log/sink.ts:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 * A log sink that writes log events to multiple downstream sinks.
78 */
79export class CompositeSink implements LogSink {
80 readonly #downstream: LogSink[]
81
82 constructor(...sinks: LogSink[]) {
83 this.#downstream = sinks
84 }
85
86 write(event: LogEvent): void {
87 for (const sink of this.#downstream) {
88 sink.write(event)
89 }
90 }
91}
92
93/**
94 * A log sink that filters log events based on a given filter.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected