ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
21 lines (20 loc) • 1.11 kB
TypeScript
import type { NamedBean } from '../context/bean';
import { BeanStub } from '../context/beanStub';
import type { BeanCollection } from '../context/context';
import type { ErrorId, LogArgs } from './errorMessages/errorText';
/**
* Grid-scoped façade over the free logging functions. Because a bean intrinsically knows its own grid,
* routing a diagnostic through `this.beans.log` attributes it to the emitting grid whether it is logged
* synchronously or from a deferred/async callback — no active-grid scope to establish. Console output is
* identical to the free `_warnWithoutAttribution`/`_errorWithoutAttribution`; only the captured
* diagnostic gains attribution.
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
*/
export declare class LogService extends BeanStub implements NamedBean {
beanName: "log";
private gridId;
wireBeans(beans: BeanCollection): void;
warn<TId extends ErrorId>(...args: LogArgs<TId>): void;
deprecated<TId extends ErrorId>(...args: LogArgs<TId>): void;
error<TId extends ErrorId>(...args: LogArgs<TId>): void;
}