Variable GlobalConfigConst Experimental

GlobalConfig: {
    logger: Logger;
} = ...

Global configuration for maxGraph.

subject to change or removal. maxGraph's global configuration may be modified in the future without prior notice.

Type declaration

  • Experimentallogger: Logger

    Configure the logger to use for all log messages.

    Available implementations provided by maxGraph are:

    To change the logger, set this property to an instance of the desired logger:

    // To direct logs to the browser console
    GlobalConfig.logger = new ConsoleLogger();
    // To direct logs to MaxLog
    GlobalConfig.logger = new MaxLogAsLogger();

    NoOpLogger

0.11.0