You can set properties temporarily using the setprop command. For example:
C:\android>adb shell setprop log.tag.MyAppTag WARN
C:\android>adb shell getprop log.tag.MyAppTag WARN
Alternatively, you can specify them in the file '/data/local.prop' as follows:
log.tag.MyAppTag=WARN
This file as read at boot time so you'll need to restart after updating it.
Finally, you can set them programmatically using the System.setProperty() method.
You should use :
Log.v(TAG, "my log message");
}

댓글 없음:
댓글 쓰기