Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov
Created Oct 13, 2019
Embed
What would you like to do?
MSAL logging
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