@itwin/presentation-hierarchies
Version:
A package for creating hierarchies based on data in iTwin.js iModels.
27 lines • 1.04 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.setLogger = setLogger;
exports.getLogger = getLogger;
const presentation_shared_1 = require("@itwin/presentation-shared");
// eslint-disable-next-line @typescript-eslint/naming-convention
let g_logger = presentation_shared_1.NOOP_LOGGER;
/**
* Set logger to use by this package. By default the package uses a no-op logger.
* @public
*/
function setLogger(logger) {
g_logger = logger ?? /* c8 ignore next */ presentation_shared_1.NOOP_LOGGER;
}
/**
* Get logger used by this package.
* @see `setLogger`
* @public
*/
function getLogger() {
return g_logger;
}
//# sourceMappingURL=Logging.js.map