azure-docs
azure-docs copied to clipboard
MSAL.js logging config does not work
loggerCallback: (level: LogLevel, message: string, containsPii: boolean): void => {..
the above line is for typescript. Running this in javascript caused the syntax error:
authConfig.js:22 Uncaught SyntaxError: Unexpected token ':' (at authConfig.js:22:35) authPopup.js:3 Uncaught ReferenceError: msalConfig is not defined at authPopup.js:3:52
Per Jason Nutter.
(level: LogLevel, message: string, containsPii: boolean): void => {
should be: (level, message, containsPii) => {
<https://teams.microsoft.com/l/message/19:[email protected]/1665599479963?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=afafed2f-e0f0-406d-9ff0-9ffc71ca03f8&parentMessageId=1665599110352&teamName=Cloud Identity – DevEx - Supportability&channelName=Auth Libraries&createdTime=1665599479963&allowXTenantAccess=false>
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 458301cb-79ae-0f32-8df3-c39ca6eabe2b
- Version Independent ID: 8ee3b8ee-2830-d72e-d743-07586def95cc
- Content: Logging errors and exceptions in MSAL.js - Microsoft Entra
- Content Source: articles/active-directory/develop/msal-logging-js.md
- Service: active-directory
- Sub-service: develop
- GitHub Login: @mmacy
- Microsoft Alias: marsma
@bachoang Thanks for your feedback! We will investigate and update as appropriate.
@mmacy Please review this issue
#reassign: @OwenRichards1