@itwin/presentation-shared
Version:
The package contains types and utilities used across different iTwin.js Presentation packages.
27 lines • 670 B
TypeScript
/**
* Defines a type for a logging function.
* @public
*/
export type LogFunction = (category: string, message: string) => void;
/**
* Defines logging severities.
* @public
*/
export type LogLevel = "error" | "warning" | "info" | "trace";
/**
* An interface for a logger used by presentation packages.
* @public
*/
export interface ILogger {
isEnabled: (category: string, level: LogLevel) => boolean;
logError: LogFunction;
logWarning: LogFunction;
logInfo: LogFunction;
logTrace: LogFunction;
}
/**
* A logger implementation that does nothing.
* @public
*/
export declare const NOOP_LOGGER: ILogger;
//# sourceMappingURL=Logging.d.ts.map