-
-
Save anton-gorbikov/072651515c34565256c7339f6910c052 to your computer and use it in GitHub Desktop.
MSAL logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!environment.production) { | |
config = { | |
...config, | |
system: { | |
...config.system, | |
logger: new Msal.Logger((level, message) => { | |
switch (level) { | |
case Msal.LogLevel.Error: | |
console.error(message); | |
break; | |
case Msal.LogLevel.Warning: | |
console.warn(message); | |
break; | |
case Msal.LogLevel.Info: | |
case Msal.LogLevel.Verbose: | |
default: | |
console.log(message); | |
break; | |
} | |
}, { level: Msal.LogLevel.Verbose }) | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment