Pascal,<br><br>I have been working on something similar. It is a console script that gather networks related logs, and will be available in the next joyride.<br><br>At the moment it includes:<br>var/log/messages<br>var/log/xorg.0.log
<br>/home/olpc.sugar.logs/presenceservice<br>/home/olpc.sugar.logs/gabble<br>/home/olpc.sugar.logs/salut<br>and the following info:<br>build<br>firmware<br>model<br>time<br>mac<br>ips of all interfaces<br>network topology
<br>jabber server<br>salut or gabble<br><br>The gzipped tar is ~20kb which is pretty low.<br><br>However, other tests(for specific activites for ex.) will require other logs.<br><br>I believe that a complete log activity should have a list of options like:
<br>network logs<br>kernel logs<br>activities logs<br>all logs<br>...so the user can choose according to the problem<br><br>also, the activity should be able to enable All Logs, from the .xinitrc, .sugar.debug files,<br>or perhaps the full kernel logs.
<br><br>I was planning to add the above features in my script, but a sugar activity is better than a console script.<br>Since we are working on the same thing we can use each other's help, and create a single application.
<br><br>yani<br><br><br><br><br><div><span class="gmail_quote">On 10/29/07, <b class="gmail_sendername">Pascal Scheffers</b> <<a href="mailto:pascal@scheffers.net">pascal@scheffers.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I've created a rough-cut log-collector, it's in d.l.o/git/project/log-<br>activity/log-collect.py<br><br>For now, it just outputs some system info, tell me what's missing or<br>what would be interesting to include?
<br><br>I don't know yet how to list installed activities... would that be<br>just `ls /usr/share/activities/`? Or is there a package list?<br><br>And then the main purpose: sending logs to OLPC, either using http-<br>
post or email or usb-stick or... but what logs should I collect? Just<br>all of them? ~/.sugar/default/logs/* and /var/log/* ? Or should it be<br>more selective?<br><br>And some information from the journal, perhaps?<br><br>
What about privacy/sensitive information? Will there be any in the<br>logs or system info?<br><br>- Pascal<br><br><br>Current log-activity.py output:<br><br>bios-version: Q2C18<br>uptime: 434169.21 430235.72<br>wireless_mac: 00-17-C4-05-2A-58
<br>uuid: 8A401F4E-E312-47F9-96C8-A488C99BDA2F<br>localization: ??<br>kernel_version: Linux version 2.6.22-20071018.1.olpc.d4414541d2be66a<br>(<a href="mailto:dilinger@fc6.laptop.org">dilinger@fc6.laptop.org</a>) (gcc version 
4.1.1 20070105 (Red Hat<br>4.1.1-51)) #1 PREEMPT Thu Oct 18 11:44:14 EDT 2007<br>diskfree: 716 MB<br>laptop-info-version: 0.1<br>memfree: 63496 kB<br>serial-number: SHF7250025C<br>disksize: 1024 MB<br>keyboard: ??-??-??<br>
olpc_build: OLPC build joyride 58 (stream joyride; variant devel_jffs2)<br>country: USA<br>board-revision: B4<br>motherboard-number: QTFLCA72400063<br>POWER_SUPPLY_NAME=olpc-battery<br>POWER_SUPPLY_TYPE=Battery<br>POWER_SUPPLY_STATUS=Full
<br>POWER_SUPPLY_PRESENT=1<br>POWER_SUPPLY_HEALTH=Good<br>POWER_SUPPLY_TECHNOLOGY=LiFe<br>POWER_SUPPLY_VOLTAGE_AVG=6792960<br>POWER_SUPPLY_CURRENT_AVG=0<br>POWER_SUPPLY_CAPACITY=97<br>POWER_SUPPLY_CAPACITY_LEVEL=Full<br>POWER_SUPPLY_TEMP=2508
<br>POWER_SUPPLY_TEMP_AMBIENT=4300<br>POWER_SUPPLY_ACCUM_CURRENT=8390<br>POWER_SUPPLY_MANUFACTURER=BYD<br>POWER_SUPPLY_SERIAL_NUMBER=5d0d01000000daff<br><br>_______________________________________________<br>Devel mailing list
<br><a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br><a href="http://lists.laptop.org/listinfo/devel">http://lists.laptop.org/listinfo/devel</a><br></blockquote></div><br>