* 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>)
| 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. |
no test coverage detected