added log extraction and parsing for logcat