* Show a warning message in the remote console and log to file. * * @param message The message to show.
(message: string)
| 728 | * @param message The message to show. |
| 729 | */ |
| 730 | warn(message: string): void { |
| 731 | if (this.logToConsole) { |
| 732 | this.connection.console.warn(message); |
| 733 | } |
| 734 | // ts.server.Msg does not have warning level, so log as info. |
| 735 | this.logger.msg(`[WARN] ${message}`, ts.server.Msg.Info); |
| 736 | } |
| 737 | |
| 738 | /** |
| 739 | * Show an information message in the remote console and log to file. |