(message: string, ...params: any[])
| 27 | * @param params - Additional arguments to supply to the console.error. |
| 28 | */ |
| 29 | export const printIonError = (message: string, ...params: any[]) => { |
| 30 | const logLevel = config.get('logLevel', LogLevel.ERROR); |
| 31 | if ([LogLevel.ERROR, LogLevel.WARN].includes(logLevel)) { |
| 32 | return console.error(`[Ionic Error]: ${message}`, ...params); |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | /** |
| 37 | * Prints an error informing developers that an implementation requires an element to be used |
no test coverage detected