Media/WebRTC/Logging: Difference between revisions

Line 4: Line 4:
NSPR has been deprecated in favor of [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Gecko_Logging MOZ_LOG].
NSPR has been deprecated in favor of [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Gecko_Logging MOZ_LOG].
However, these are two parallel logging systems and some webrtc code still uses NSPR. Before Firefox 54, the MOZ_LOG* variables can not be used to control all webrtc logging (in particular 'signaling' and 'webrtc_trace' can't).  From 54 and later, MOZ_LOG can be used for all logging.  Note also that MOZ_LOG is case-sensitive, while NSPR_LOG_MODULES is not.
However, these are two parallel logging systems and some webrtc code still uses NSPR. Before Firefox 54, the MOZ_LOG* variables can not be used to control all webrtc logging (in particular 'signaling' and 'webrtc_trace' can't).  From 54 and later, MOZ_LOG can be used for all logging.  Note also that MOZ_LOG is case-sensitive, while NSPR_LOG_MODULES is not.
In Firefox 54 and later, you can use about:networking, and select the Logging option, to change MOZ_LOG/MOZ_LOG_FILE options on the fly -- without restarting the browser.  Also, you can use about:config and set any log option by adding a "logging.xxxxx" variable (right-click -> New), and set it to an integer value of 0-5.


=== ICE/STUN/TURN ===
=== ICE/STUN/TURN ===
Confirmed users
325

edits