Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有角度 7 的 oidc-client,并且我想启用日志记录。该文档建议我可以执行以下操作
Oidc.Log.logger = console;
我无法完成这项工作,因为 Oidc 似乎不在窗口对象上??
只需将其添加到您的代码中
Log.logger = console; Log.level = Log.DEBUG;
和正确的导入
import { Log } from 'oidc-client';