UNPKG

@kontent-ai/smart-link

Version:

Kontent.ai Smart Link SDK allowing to automatically inject [smart links](https://docs.kontent.ai/tutorials/develop-apps/build-strong-foundation/set-up-editing-from-preview#a-using-smart-links) to Kontent.ai according to manually specified [HTML data attri

47 lines (46 loc) 1.79 kB
export declare enum LogLevel { Debug = 1, Info = 2, Warn = 3, Error = 4 } /** * Sets the global log level for all logging functions. * Note: This function is impure as it modifies the module-scoped logLevel variable. */ export declare function setLogLevel(level: LogLevel): void; /** * Logs error messages to the console with '[KSL][Error]:' prefix. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logError(...args: unknown[]): void; /** * Logs warning messages to the console with '[KSL][Warning]:' prefix. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logWarn(...args: unknown[]): void; /** * Logs informational messages to the console with '[KSL][Info]:' prefix. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logInfo(...args: unknown[]): void; /** * Logs debug messages to the console. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logDebug(...args: unknown[]): void; /** * Creates a collapsed console group for debug logging. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logGroupCollapsed(...args: unknown[]): void; /** * Creates an expanded console group for debug logging. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logGroup(...args: unknown[]): void; /** * Ends the current console group for debug logging. * Note: This function is impure as it depends on the module-scoped logLevel variable. */ export declare function logGroupEnd(): void;