# How to get the log output of the licode addons library

**URL:** <https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015>\
**Category:** Support\
**Created:** [July 15, 2020, 4:14am UTC](https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015 "2020-07-15T04:14:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haihua](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/haihua/32/178_2.png) [@Haihua](https://discourse.lynckia.com/u/Haihua)\
**Post date:** [July 15, 2020, 4:14am UTC](https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015/1 "2020-07-15T04:14:11Z")

</div>

I am now debugging with Externaloutput.{h,cpp}, could anyone give me any hints on how to get the log output from the code.

Thank you very much !

---

<div class="post-metadata">

**Author:** ![Haihua](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/haihua/32/178_2.png) [@Haihua](https://discourse.lynckia.com/u/Haihua)\
**Post date:** [July 15, 2020, 4:16am UTC](https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015/2 "2020-07-15T04:16:53Z")

</div>

BTW, I can get all the log output from the JS code and see some log outputs from other c++ code.  
But there is no log output from Externaloutput.cc.

---

<div class="post-metadata">

**Author:** ![Haihua](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/haihua/32/178_2.png) [@Haihua](https://discourse.lynckia.com/u/Haihua)\
**Post date:** [July 20, 2020, 11:38am UTC](https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015/3 "2020-07-20T11:38:03Z")

</div>

Let me answer my question:

I wrote a simple class to log the output to a file (say some file in /tmp folder). I also partially solved the video logging issue.  
This line should add to the construction function:

setAudioSinkSSRC(1000000000 + getRandomValue(0, 999999999));  
as well as other minor modifications in the ExternalOutput.cpp file.

---

<div class="post-metadata">

**Author:** ![Haihua](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/haihua/32/178_2.png) [@Haihua](https://discourse.lynckia.com/u/Haihua)\
**Post date:** [July 20, 2020, 11:42am UTC](https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015/4 "2020-07-20T11:42:11Z")

</div>

Now, I can normally play back what I have logged.  
Anyway, there are still bugs in ExternalOutput.cpp, since it forced the video should contains  
both video and audio stream simultaneously. This is not the normal case, since sometimes  
the stream only contains one of them.

Now, I am thinking how to add Data Channel to licode.  
However, so fat, I am not familiar with the entire structure.

---

<div class="post-metadata">

**Author:** ![Haihua](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/haihua/32/178_2.png) [@Haihua](https://discourse.lynckia.com/u/Haihua)\
**Post date:** [July 20, 2020, 11:43am UTC](https://discourse.lynckia.com/t/how-to-get-the-log-output-of-the-licode-addons-library/1015/5 "2020-07-20T11:43:38Z")

</div>

My intention is to extract the audio as input to speech recognition engine, and then send the recognition results back to the subscribers.
