MCPcopy
hub / github.com/tsrpc/tsrpc / getPrefix

Method getPrefix

src/server/Logger.ts:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 static pool = new Pool<PrefixLogger>(PrefixLogger);
11
12 getPrefix(): string[] {
13 return this.options.prefixs.map(v => typeof v === 'string' ? v : v());
14 }
15
16 log(...args: any[]) {
17 this.options.logger.log(...this.getPrefix().concat(args));

Callers 4

logMethod · 0.95
debugMethod · 0.95
warnMethod · 0.95
errorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected