How to use the adal-node.Logging function in adal-node

To help you get started, we’ve selected a few adal-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / ms-rest-nodeauth / lib / login.ts View on Github external
function turnOnLogging() {
  const log = adal.Logging;
  log.setLoggingOptions(
    {
      level: 3, // Please use log.LOGGING_LEVEL.VERBOSE once AD TypeScript mappings are updated,
      log: function (level: any, message: any, error: any) {
        level;
        console.info(message);
        if (error) {
          console.error(error);
        }
      }
    });
}
github Azure / autorest / src / client / NodeJS / ms-rest-azure / lib / login.js View on Github external
function _turnOnLogging() {
  var log = adal.Logging;
  log.setLoggingOptions(
    {
      level : log.LOGGING_LEVEL.VERBOSE,
      log : function (level, message, error) {
        console.info(message);
        if (error) {
          console.error(error);
        }
      }
    });
}
github microsoft / PowerBI-Developer-Samples / API Samples - NodeJS / authentication.js View on Github external
function turnOnLogging() {
        var log = adal.Logging;
        log.setLoggingOptions(
        {
        level : log.LOGGING_LEVEL.VERBOSE,
        log : function(level, message, error) {
            console.log(message);
            if (error) {
            console.log(error);
            }
        }
        });
    }
github AzureAD / azure-activedirectory-library-for-nodejs / sample / username-password-sample.js View on Github external
function turnOnLogging() {
  var log = adal.Logging;
  log.setLoggingOptions(
  {
    level : log.LOGGING_LEVEL.VERBOSE,
    log : function(level, message, error) {
      console.log(message);
      if (error) {
        console.log(error);
      }
    }
  });
}
github Azure / azure-sdk-for-java / ClientRuntimes / NodeJS / ms-rest-azure / lib / login.js View on Github external
function _turnOnLogging() {
  var log = adal.Logging;
  log.setLoggingOptions(
    {
      level : log.LOGGING_LEVEL.VERBOSE,
      log : function (level, message, error) {
        console.info(message);
        if (error) {
          console.error(error);
        }
      }
    });
}
github Azure / azure-sdk-for-node / runtime / ms-rest-azure / lib / login.js View on Github external
function _turnOnLogging() {
  let log = adal.Logging;
  log.setLoggingOptions(
    {
      level: log.LOGGING_LEVEL.VERBOSE,
      log: function (level, message, error) {
        console.info(message);
        if (error) {
          console.error(error);
        }
      }
    });
}
github Azure / ms-rest-nodeauth / dist / lib / login.js View on Github external
function turnOnLogging() {
    const log = adal.Logging;
    log.setLoggingOptions({
        level: log.LOGGING_LEVEL.VERBOSE,
        log: function (level, message, error) {
            level;
            console.info(message);
            if (error) {
                console.error(error);
            }
        }
    });
}
if (process.env["AZURE_ADAL_LOGGING_ENABLED"]) {
github Azure / azure-xplat-cli / lib / util / authentication / adalAuth.js View on Github external
function turnOnLogging() {
  var log = adal.Logging;
  log.setLoggingOptions(
    {
      level : log.LOGGING_LEVEL.VERBOSE,
      log : function (level, message, error) {
        logging.info(message);
        if (error) {
          logging.error(error);
        }
      }
    });
}

adal-node

Windows Azure Active Directory Client Library for node

MIT
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis