Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Logging using oidc-client with Angular

I am using oidc-client with angular 7, and I want to enable logging. The doc suggests that I can do the following

Oidc.Log.logger = console;

I have not been able to make this work as Oidc does not appear to be on the window object??

like image 836
Douglas Woods Avatar asked Mar 27 '19 02:03

Douglas Woods


1 Answers

Just add this to your code

Log.logger = console;
Log.level = Log.DEBUG;

and the correct import

import { Log } from 'oidc-client';
like image 109
user2341176 Avatar answered Oct 23 '22 06:10

user2341176