AgoraIO-Community / Angular-Agora-RTC

11 stars 16 forks source link

Logger #7

Closed Bennoo closed 10 months ago

Bennoo commented 5 years ago

Hello,

Thanks for implementing this wrapper.

I cannot find how to configure the logging. For the moment the component is logging every level in the console, I would like to configure that. Is this possible?

Thanks,

rurico commented 4 years ago

constructor(private ngxAgoraService: NgxAgoraService) { }

ngOnInit() {
  this.ngxAgoraService.AgoraRTC.Logger.setLogLevel( ... );
}
elmartino commented 4 years ago

@rurico your answer is when using ngx-arora, not angular-agora-rtc

Anyone knows how to disable logging in angular-agora-rtc ?

rurico commented 4 years ago

@elmartino

import * as agoraSDK from 'agora-rtc-sdk';
class ... {
  ngOnInit() {
    agoraSDK.Logger.setLogLevel( ... );
  }
}
elmartino commented 4 years ago

Thanks @rurico ! Works like a charm!

sobaidali commented 3 years ago

Hi, can anyone suggest how to show logs in toasts.

Bennoo commented 10 months ago

Okay this is from another times. I even don't remember what the issue was. I close this