Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titleLogging Performance Impact Warning

Please be aware that enabling logging can have a performance impact. In some cases the impact is enough to cause timeout errors to be triggered while logs are being output and the plugin is waiting to progress to the next step. The performance impact is present in both Internet Explorer and Safari, however the performance impact tends to be greater when using Safari.

Entering verbose mode - Latest

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' 

...

};

 

Entering verbose mode - prior to 0.10.4

...

Logs location

The logs are in:

  • Win 7 this : %USERPROFILE%\AppData\LocalLow\CompanyName\logs,
  • Mac : ~/Library/Application Support/CompanyName/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(

...

Debug Log Levels:

The logging levels available are as follows, ordered from most verbose to least. 

...

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)