>-----Original Message----- >From: Jia-Chi Lai [mailto:jackie09050...@gmail.com] >Sent: Monday, February 21, 2011 10:07 AM >To: Rongas Timo >Cc: meego-dev@meego.com >Subject: Re: [MeeGo-dev] how to log message from screen orientation to >sensorfw? > > > >2011/2/16 Rongas Timo <timo.ron...@digia.com> > > > >From: meego-dev-boun...@meego.com [mailto:meego-dev- > >boun...@meego.com] On Behalf Of Jia-Chi Lai > >Sent: Wednesday, February 16, 2011 11:47 AM > >To: meego-dev@meego.com > >Subject: [MeeGo-dev] how to log message from screen orientation >to > >sensorfw? > > > > >hi~ > > > >I open a setting application and change the orientation of device.The >screen > >will change the orientation. > > > >I would like to log message from application screen orientation to >sensorfw to > >see what happen when I install a qt-mobility rpm. > >the rpm which I build with qt-mobility-1.2.0~beta0+git922- >2.11.src.rpm and > >after I install it, then the screen can not change the orientation when >I change > >device orientation. > > > >anyone know how to log the message from application screen >orientation to > >sensorfw?? > >Or any idea about this question?? > > > If I understood correctly, you wish to get log entries whenever >sensord detect a change in orientation, right? > > You can adjust sensord logging level by sending it SIGUSR1. The >modes are test, debug, warning, critical. Each received signal notches the >level >up by one. By default the level is 'warning', so send it two signals to get >'test' >level messages. Look for line saying "new orientation value". Expect a lot of >noise to the log. > > You can also start sensord manually and give it the logging level and >target file as parameters. By default syslog is used. See sensord --help > > > > >yes, I use --log-level=debug --log-target=1 and the log message is shown in >the console, but the last message show: Dbus abort.
This is because only one Sensorfw daemon can be connected to DBus at a time. >So, I kill the sensord and manually start the sensord and the log of sensord >are >shown on console. >But I would like to get more log message, from qt-mobility to sensorfw. >Do you know how to get the log message of "orientation-contextkit- >sensor" ,"sensorfw" , "qt-mobility sensor" when the screen orientation is >started at the same time? Depends on what you are after, but how about just having 3 consoles open, each monitoring the output of one of those components? Manually started sensord pushing out logs in the first, context-listen showing context info in the next, and some example client from QtMobility (e.g. show_orientation) in the third. Or write a nifty script that does all of that and hands you the output in a nice format? :) // Timo _______________________________________________ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines