MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / constructor

Method constructor

packages/utilities/src/logger.ts:16–20  ·  view source on GitHub ↗
(logger: LogHelper, prefix?: string)

Source from the content-addressed store, hash-verified

14 private _timeStamps: Record<string, Date>;
15
16 constructor(logger: LogHelper, prefix?: string) {
17 this.logger = logger;
18 this.prefix = prefix ? `[${prefix}] ` : '';
19 this._timeStamps = {};
20 }
21 info(json: object): void {
22 this.logger.info(this.prefix + util.format('%j', json));
23 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected