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

Method info

src/logger.ts:152–178  ·  view source on GitHub ↗

* Displays info 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

150 * @returns {void} Nothing.
151 */
152 public info(component: string, message: string, ...optionalParams: ReadonlyArray<any>): void
153 {
154 if (this.infoDisabled)
155 {
156 return;
157 }
158
159 if (this.supportsConsoleInfo)
160 {
161 const infoMessage = this.format(component, 'Info', message);
162
163 console.info(infoMessage, ...optionalParams);
164
165 return;
166 }
167
168 if (this.supportsConsoleLog)
169 {
170 const infoMessage = this.format(component, 'Info', message);
171
172 console.log(infoMessage, ...optionalParams);
173
174 return;
175 }
176
177 return;
178 }
179
180 /**
181 * Displays warn message.

Callers 1

Calls 1

formatMethod · 0.95

Tested by

no test coverage detected