@maxgraph/core
Version:
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
39 lines (38 loc) • 1.31 kB
TypeScript
import type { Logger } from '../types.js';
/**
* A {@link Logger} that does nothing.
*
* @experimental subject to change or removal. The logging system may be modified in the future without prior notice.
* @since 0.11.0
* @category Logging
*/
export declare class NoOpLogger implements Logger {
debug(_message: string): void;
enter(_message: string): number | undefined;
error(_message: string, ..._optionalParams: any[]): void;
info(_message: string): void;
leave(_message: string, _baseTimestamp?: number): void;
show(): void;
trace(_message: string): void;
warn(_message: string): void;
}
/**
* A {@link Logger} that directs logs to the browser console.
*
* @experimental subject to change or removal. The logging system may be modified in the future without prior notice.
* @since 0.11.0
* @category Logging
*/
export declare class ConsoleLogger implements Logger {
debugEnabled: boolean;
infoEnabled: boolean;
traceEnabled: boolean;
enter(message: string): number | undefined;
leave(message: string, baseTimestamp?: number): void;
show(): void;
trace(message: string): void;
debug(message: string): void;
info(message: string): void;
warn(message: string): void;
error(message?: any, ...optionalParams: any[]): void;
}