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