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

Function printIonWarning

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

Source from the content-addressed store, hash-verified

13 * @param message - The string message to be logged to the console.
14 */
15export const printIonWarning = (message: string, ...params: any[]) => {
16 const logLevel = config.get('logLevel', LogLevel.WARN);
17 if ([LogLevel.WARN].includes(logLevel)) {
18 return console.warn(`[Ionic Warning]: ${message}`, ...params);
19 }
20};
21
22/**
23 * Logs an error to the console with an Ionic prefix

Callers 15

valueChangedMethod · 0.90
inputsChangedMethod · 0.90
onTypeChangeMethod · 0.90
connectedCallbackMethod · 0.90
styleMainElementMethod · 0.90
processSeparatorsMethod · 0.90
DatetimeClass · 0.90
componentWillLoadMethod · 0.90
warnIfTimeZoneProvidedFunction · 0.90
parseDateFunction · 0.90
warnIfValueOutOfBoundsFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected