Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do we need a log callback function of webrtc native log in browser? #124

Open
bdrtc opened this issue Nov 4, 2022 · 2 comments
Open

do we need a log callback function of webrtc native log in browser? #124

bdrtc opened this issue Nov 4, 2022 · 2 comments

Comments

@bdrtc
Copy link

bdrtc commented Nov 4, 2022

Background

we know webrtc provide getStats api for developer debug call, but sometimes this approach is insufficient from a developer perspective when debug online problem, webrtc native have a lot of log and disabled by default in browser, chrome provide command line log arguments to active native log but not others, sometimes developer need those webrtc native log to analize online problem, Especially mobile browsers are more fragmented, and there is no way to enable webrtc native logs in these browsers to analyze some compatibility issues.

Request
The request here is to be able to add a log callback function to RTCPeerConnection to print webrtc native log, and add log level configure to RtcConfiguration

i open it as start here, developers with the same pain points/requirements can discuss here.

@alvestrand
Copy link
Collaborator

I would greatly enjoy having a standard log facility.

The difficulty with proposing anything here is that logs often need to provide information that exposes internal implementation details - this means that the content of the log is unlikely to be consistent enough for standardization; two browsers will not produce identical logs on the identical sequence of events.

How to solve this?

@bdrtc
Copy link
Author

bdrtc commented Nov 4, 2022

I think maybe we do not need standard the content of log , it just export the webrtc native raw logs like below as bridge, and the log level also consistent with the built-in log level of webrtc, what's more, log level should disabled/error devel by default.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants