MCPcopy
hub / github.com/ionic-team/ionic-framework / printIonError

Function printIonError

core/src/utils/logging/index.ts:29–34  ·  view source on GitHub ↗
(message: string, ...params: any[])

Source from the content-addressed store, hash-verified

27 * @param params - Additional arguments to supply to the console.error.
28 */
29export 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

Callers 15

componentWillLoadMethod · 0.90
DatetimeButtonClass · 0.90
renderMonthMethod · 0.90
getHighlightStylesFunction · 0.90
commitMethod · 0.90
connectedCallbackMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
prepareLazyLoadedMethod · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected