Thursday, 15 August 2013

android - Real device produce too many log -



android - Real device produce too many log -

developing simple programme android. tested on real device samsung young android 2.3. programme produce log output debugging purpose. every thing ok, device began produce lot of messages in eclipse logcat window, when prog not running. device produces messages this:

02-08 09:14:51.960: d/callmanager(1560): handlemessage (event_service_state_changed) 02-08 09:14:54.078: e/statusbarpolicy(1548): ecio: 22 02-08 09:14:54.078: e/statusbarpolicy(1548): iconlevel: 4 02-08 09:14:56.640: e/statusbarpolicy(1548): ecio: 23 02-08 09:14:56.640: e/statusbarpolicy(1548): iconlevel: 4 02-08 09:14:59.203: e/statusbarpolicy(1548): ecio: 24 02-08 09:14:59.203: e/statusbarpolicy(1548): iconlevel: 4 02-08 09:16:00.007: e/clockwidget(3324): getorientation portrait 02-08 09:16:00.007: e/clockwidget(3324): drawdaytext 02-08 09:16:00.007: e/clockwidget(3324): width= 50 02-08 09:16:00.007: e/clockwidget(3324): widthtext= 63.0 02-08 09:16:00.015: e/clockwidget(3324): right 02-08 09:16:00.640: e/statusbarpolicy(1548): ecio: 26 02-08 09:16:00.640: e/statusbarpolicy(1548): iconlevel: 4 02-08 09:18:26.617: d/batteryservice(1495): charger :: mbatterystatus = 4 02-08 09:18:26.617: d/batteryservice(1495): updatebattery level:99 scale:100 status:4 health:2 present:false voltage: 4 temperature: 340 technology: li-ion ac powered:false usb powered:true icon:17302184 02-08 09:18:26.632: d/wifiservice(1495): [mpersiststate] : on 02-08 09:18:26.632: i/statusbarpolicy(1548): bat. s:4 h:2 02-08 09:18:26.656: d/vold(1306): volumemanager::handleswitchevent -> changed usb status switch_name(usb_mass_storage),switch_state(offline) 02-08 09:18:26.656: w/vold(1306): ignoring unknown switch 'usb_mass_storage' 02-08 09:18:26.656: d/vold(1306): volumemanager::handleswitchevent -> changed usb status switch_name(usb_connected),switch_state(0) 02-08 09:18:26.656: w/vold(1306): ignoring unknown switch 'usb_connected' 02-08 09:18:27.078: i/powermanagerservice(1495): lite animator finished curintvalue=143 02-08 09:18:27.242: d/androidruntime(13895): >>>>>> androidruntime start com.android.internal.os.runtimeinit <<<<<< 02-08 09:18:27.242: d/androidruntime(13895): checkjni off 02-08 09:18:27.242: i/androidruntime(13895): jni options: '-xjniopts:warnonly' 02-08 09:18:27.242: e/androidruntime(13895): feature code ==> cannot open file 02-08 09:18:27.421: d/libqmg_native(13895): register_android_app_libqmg 02-08 09:18:27.476: d/androidruntime(13895): calling main entry com.android.commands.am.am

and on. device generates constantly, can't stop it. when run programm becomes impossible find usefull log messages.

how can stop device producing such messages?

just create filter own application.

steps:

go in ddms perspective. in logcat tab, click on green + sign wil bring next pop-up in by application name: section, set in root namespace. example: com.abc.testapp

alternative method: if haven't tried before option, while still in all message section of logcat, find stacktrace application -> right click -> filter similar message. clear out other by application name , same result.

now have 2 entries in logcat tab. 1 message , 1 application.

android logcat android-logcat

No comments:

Post a Comment