UNPKG

@mlightcad/common

Version:

The common package provides shared utilities and base classes that are used across the RealDWG-Web ecosystem. This package contains fundamental components for color management, event handling, logging, performance monitoring, and file loading operations.

23 lines 472 B
import * as loglevel from 'loglevel'; export var DEBUG_MODE = true; export var log = loglevel; if (DEBUG_MODE) { log.setLevel('debug'); } else { log.setLevel('warn'); } /** * Sets log level. * Note that, we limit user to set only some of the levels. */ export var setLogLevel = function (level) { try { log.setLevel(level); } catch (ex) { log.setLevel('error'); log.error(ex); } }; //# sourceMappingURL=AcCmLogUtil.js.map