* 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>)
| 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. |