Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Set the log level

The default logging level id NONE. 
You can activate it by calling setLogLevel with the appropriate string according to your needs.

If you are using Temasys AdapterJS version 0.10.4 and above, the following convenience method is available:

Code Block
languagejs
AdapterJS.WebRTCPlugin.setLogLevel(logLevel);


The different log levels available are (from the more verbose to the least verbose):

Code Block
languagejs
AdapterJS.WebRTCPlugin.PLUGIN_LOG_LEVELS = {
	NONE : 'NONE', // Default
	ERROR : 'ERROR', 
	WARNING : 'WARNING',
	INFO: 'INFO',
	VERBOSE: 'VERBOSE',
	SENSITIVE: 'SENSITIVE' 
};

Logs location

The logs are in:

  • Win 7 this : %USERPROFILE%\AppData\LocalLow\CompanyNameTemWebRTCPlugin\logs,
  • Mac : ~/Library/Application Support/CompanyNameTemWebRTCPlugin/logs

Every new start of the plugin generates a new log file. 
The files are named as follow:

Code Block
languagejs
Timestamp_MainThreadNumber.log
// for example: 1446623017_0x7fff7c464300.log

Logs Format

The log format it as follow: 

Code Block
TIME_SINCE_START [THREAD_NUMBER] [LOG_LEVEL] FireBreath <> - [TAB_ID] - [CODE_LOCATION] - MESSAGE

Example for a plugin made log: 

Code Block
11295 [0x7fff7c464300] WARN FireBreath <> - [tv13oacd93n] - TemMediaStream::enableSoundTracks - This method is deprecated

Example for a libWebRTC made log: 

Code Block
49143 [0x112312000] INFO FireBreath <> - [u3w3uoox5rf] - [WEBRTC] - Removing video stream 0 with VideoEngine channel #0

Entering verbose mode - Prior to plugin version 0.8.861

The default logging level id NONE. You can activate it by calling setLogLevel with the appropriate string according to your needs.

If you are using Temasys AdapterJS version 0.10.4 and above, the following convenience method is available:

Code Block
languagejs
AdapterJS.WebRTCPlugin.setLogLevel(logLevel) 

The different log levels available are (from the more verbose to the least verbose):

Code Block
languagejs
AdapterJS.WebRTCPlugin.PLUGIN_LOG_LEVELS = {
  NONE : 'NONE',
  ERROR : 'ERROR',  
  WARNING : 'WARNING', 
  INFO: 'INFO', 
  VERBOSE: 'VERBOSE', 
  SENSITIVE: 'SENSITIVE'  
};

Output Prefix Glossary: 

Log output is prefixed in some cases. 

  • INFO: Information reported by the plugin. 
  • ERROR: Errors originating from within the plugin.
  • WEBRTC: Error originating from within the foundation WebRTC library (Google's implementation)