如何使用 MSAL 禁用 angular 应用的日志

How to disable logs for an angular app with MSAL

我在 angular 应用程序中使用 Microsoft 身份验证库 msal。当我 运行 应用程序的生产版本时,我在控制台中看到以下日志。如何禁用日志记录?

您应该在生产和开发中禁用跟踪。仅在需要时启用跟踪。

imports: [
    RouterModule.forRoot(
      routes,
      { enableTracing: false } // <-- debugging purposes only
    )
]