MCPcopy Create free account
hub / github.com/dipscope/TypeManager.TS / debug

Method debug

src/logger.ts:124–141  ·  view source on GitHub ↗

* Displays debug message. * * @param {string} component Component which logs the message. * @param {string} message Message to display. * @param {ReadonlyArray } optionalParams Optional data related to a message. * * @returns {void} Nothing.

(component: string, message: string, ...optionalParams: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

122 * @returns {void} Nothing.
123 */
124 public debug(component: string, message: string, ...optionalParams: ReadonlyArray<any>): void
125 {
126 if (this.debugDisabled)
127 {
128 return;
129 }
130
131 if (this.supportsConsoleLog)
132 {
133 const debugMessage = this.format(component, 'Debug', message);
134
135 console.log(debugMessage, ...optionalParams);
136
137 return;
138 }
139
140 return;
141 }
142
143 /**
144 * Displays info message.

Callers

nothing calls this directly

Calls 1

formatMethod · 0.95

Tested by

no test coverage detected