[maemo-developers] printing logs (printf) when application starts from menu

From: Jason Edgecombe jason at rampaginggeek.com
Date: Thu Oct 23 15:51:55 EEST 2008
Simon Pickering wrote:
>> I wrote an application named "My_app"  that plays audio and also records
>> voice from microphone. I usually use this application from command
>> prompt. There are lots of printfs in it for debugging purpose which gets
>> printed on terminal when the application is run. I just put the
>> application in the start menu and it does not behave properly as it
>> should. More particularly the recording from mic is problematic. I have
>> no way of accessing the printf at present as the application is starting
>> from
>> "Start Menu" -> "Extras" -> "My_app"
>>
>> Is there any way that I can get this printf printed in some file when I
>> start this application from the menu. It will be still much better if I
>> can open another window and it keeps printing the printf even when I
>> start "My_app" from the menu.
>>     
>
> Sounds like this would be a useful feature for the hildon-launcher to  
> support. I would like to see hildon-launcher reporting errors to some  
> central server (a la M$ Windows error reporter) and any stdout/stderr  
> output would would be a useful thing to have. This reporting tool does  
> actually exist within Nokia for internal testing, but would probably  
> also be useful for the outside world, obviously with tweaks to where  
> the debugging information is sent.
>
> I remember on Opie (running on the Zaurus) there was a central log  
> screen which showed the output of all of the Opie applications. I  
> wonder if this would be an option, or perhaps just automatically  
> piping the output from individual applications a pid-specifc temporary  
> log file under /var (which could then be sent off with an error report  
> should one occur, or would otherwise be deleted when the app closes).
>
> Hildon launcher is here:  
> https://stage.maemo.org/svn/maemo/projects/haf/trunk/maemo-launcher/launcher/
>
> Have a look and see what patches you think might do the job.
>
>   
So, are you asking for syslog or the equivalent?

Jason


More information about the maemo-developers mailing list