<div dir="ltr">Andrej,<div><br></div><div>Thank you for the quick reply. I tried your solution and also added filter to filter the tags which I want instead of logging everything from the circular buffer. Currently, this should work fine for me and I am planning to add these commands to init.rc file so that they can start upon phone boot.</div>

<div>I identified the place where the logging daemon service is started in init.rc file. Below you can see part of init.rc file where the shell process is spawned. </div><div><br></div><div><div>## Daemon processes to be run by init.</div>

<div>##</div><div>service ueventd /sbin/ueventd</div><div>    critical</div><div><br></div><div>service console /system/bin/sh</div><div>    console</div><div>    disabled</div><div>    user shell</div><div>    group log</div>

</div><div><br></div><div>I have 2 questions:</div><div>1) Do you want me to add the logcat commands in any specific place in init.rc file?</div><div>2) For my next steps, I am planning to read and write some information like SSID name, freq etc in a file other then wpa_supplicant.conf file from within the wpa_supplicant daemon service. That&#39;s the reason I asked to log events directly form wpa_supplicant in my first email.</div>

<div><br></div><div>thanks all !</div><div><br></div><div>Sincerely,</div><div>Nithy </div><div><br></div><div><div><br></div><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 12:36 PM, Cainikov, Andrej <span dir="ltr">&lt;<a href="mailto:Andrej.Cainikov@sonyericsson.com">Andrej.Cainikov@sonyericsson.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="SV" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Hi Nithy,<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">What are you asking for has nothing to do with the wpa_supplicant itself, but rather to Android specifics.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Collecting the logs on Android phone without USB cable normally is achieved via:<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">$ adb wait-for-device shell<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">$ logcat –v threadtime &gt; /data/logcat.log &amp;<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Br,<u></u><u></u></span></p><p class="MsoNormal">

<span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Andrejs Cainikovs.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:hostap-bounces@lists.shmoo.com" target="_blank">hostap-bounces@lists.shmoo.com</a> [mailto:<a href="mailto:hostap-bounces@lists.shmoo.com" target="_blank">hostap-bounces@lists.shmoo.com</a>] <b>On Behalf Of </b>Nithyananthan Poosamani<br>

<b>Sent:</b> den 12 oktober 2011 18:12<br><b>To:</b> <a href="mailto:hostap@shmoo.com" target="_blank">hostap@shmoo.com</a><br><b>Subject:</b> Record Events happening in Supplicant Module in a log file inside the phone with Timing Information<u></u><u></u></span></p>

</div><div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Dear All,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I am working to record some of the events happening in wpa_supplicant module like how many times the configuration file is read by supplicant to populate it&#39;s data structures, what time it happened, number of scans performed and their timing information etc.<u></u><u></u></p>

</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I have a rooted Nexus One phone which uses the wext driver. Currently, I would kill the wpa_supplicant process and start it with advanced log level to see all these information. The command I used is <u></u><u></u></p>

</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf -dd<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>

</div><div><p class="MsoNormal">But I was able to see all these logs ONLY when I am connected to ADB interface through Eclipse. What I want is that I need to see all the logs even when the phone is not connected to ADB. I would like to store all these log information as a file inside the smartphone which I can later retrieve. Example the file could be logged in /data/misc/wifi/supplicant_log.txt. I shall later parse this log file and gather some information.<u></u><u></u></p>

</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Please guide me in achieving this. Thank you all for your time and patience !<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>

</div><div><p class="MsoNormal">Sincerely,<u></u><u></u></p></div><div><p class="MsoNormal">Nithy<u></u><u></u></p></div><div><p class="MsoNormal">--<u></u><u></u></p></div><div><p class="MsoNormal">Networking Research Laboratory (NRL)<u></u><u></u></p>

</div><div><p class="MsoNormal">NC State University.<u></u><u></u></p></div></div></div></div></div></div></blockquote></div><br></div></div>