emit non-fatal warnings
(message: string, options?: LoggerOptions)
| 102 | |
| 103 | /** emit non-fatal warnings */ |
| 104 | public warn(message: string, options?: LoggerOptions): void { |
| 105 | const name = (options && options.name) || 'snowpack'; |
| 106 | this.log({level: 'warn', name, message, task: options?.task}); |
| 107 | } |
| 108 | |
| 109 | /** emit critical error messages */ |
| 110 | public error(message: string, options?: LoggerOptions): void { |
no test coverage detected