Media/WebRTC/Logging: Difference between revisions

Remove out of date information.
(Remove out of date information.)
Line 32: Line 32:
=== Media (the GIPS stack: RTP/RTCP) ===
=== Media (the GIPS stack: RTP/RTCP) ===


This also uses the Mozilla logging infrastructure, but it uses a bitmask to select which items are logged, instead of the default log levels. It also logs to a different destination by default.
This also uses the Mozilla logging infrastructure.


* NSPR_LOG_MODULES=webrtc_trace:65535 (in Firefox 54 and later, you need to use levels 1-5, with 5 being the most verbose, equivalent to 65535 in the old way)
* MOZ_LOG=webrtc_trace:5
* WEBRTC_TRACE_FILE=/path/to/WebRTC.log (the default is just "WebRTC.log")
** If WEBRTC_TRACE_FILE=nspr, the logs will be inserted into the NSPR/MOZ logs.  Note this may have a major performance impact.
 
The full list of logging options is found in the TraceLevel enum (see <http://mxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/common_types.h#83>).
4

edits