polarity-integration-utils
    Preparing search index...

    Function setLogger

    • Set the logger object used by the integration.

      Parameters

      • logger: Logger

        the integration logger object passed into the startup method

      Returns void

      Example of setting the logger within the integration's startup method:

      const { setLogger } = require('polarity-integration-utils/logger');

      function startup(logger){
      setLogger(logger);
      }

      You can now use getLogger to get the logger object anywhere within your integration codebase.