import type { Logger } from '@polarityio/integration-types'; /** * Set the logger object used by the integration. * * @example * Example of setting the logger within the integration's startup method: * ```js * const { setLogger } = require('polarity-integration-utils'); * * function startup(logger){ * setLogger(logger); * } * ``` * * You can now use {@link getLogger} to get the logger object anywhere within your integration codebase. * * @group Logging * @public * @param logger - the integration logger object passed into the `startup` method */ declare const setLogger: (logger: Logger) => void; /** * return the logger object set via the {@link setLogger} method. * * @example * Example of using the integration's logging object: * ```js * const { getLogger } = require('polarity-integration-utils'); * * const logger = getLogger(); * logger.trace('this is a trace message'); * ``` * * @group Logging * @public * @returns the integration's logger object */ declare const getLogger: () => Logger; export { setLogger, getLogger }; //# sourceMappingURL=logger.d.ts.map