You can configure the library's logging behavior using Logging.setLoggingOptions. By default, the library does not capture Personal Identifiable Information (PII) or Organizational Identifiable Information (OII). To enable this, set the loggingWithPII flag to true.
Note: When loggingWithPII is enabled, the application developer assumes responsibility for safely handling sensitive data and complying with regulatory requirements.
var logging = require('adal-node').Logging;
// PII or OII logging disabled (Default)
logging.setLoggingOptions({
log: function(level, message, error) {
// provide your own implementation of the log function
},
level: logging.LOGGING_LEVEL.VERBOSE,
loggingWithPII: false
});
// PII or OII logging enabled
logging.setLoggingOptions({
log: function(level, message, error) {
// provide your own implementation of the log function
},
level: logging.LOGGING_LEVEL.VERBOSE,
loggingWithPII: true
});