This repository has been archived by the owner on Jun 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 371
Logging
Navya Canumalla edited this page May 5, 2018
·
2 revisions
ADAL JS provides a way for applications to perform logging for debugging purposes.
You can add the code below in your app.js file to enable logging. Implement the log
method depending on how you want to redirect logs.
Logging = {
level: 3,
log: function (message) {
console.log(message);
},
piiLoggingEnabled: false
};
Log levels are mapped as:
0: Error
1: Warning
2: Info
3: Verbose
By default, ADAL logging does not capture or log any PII or OII. The library allows app developers to turn this on by configuring the piiLoggingEnabled
flag on the log context. By turning on PII or OII, the app takes responsibility for safely handling highly-sensitive data and complying with any regulatory requirements.
//PII or OII logging disabled. Default Logger does not capture any PII or OII
Logging.piiLoggingEnabled = false
//PII or OII logging enabled
Logging.piiLoggingEnabled = true