I want to save logcat values, specifically LOG.I, of my application in sdcard.
I have used following code to get all log values but unable to filter it to get only specific log.i values. Please suggest how to do it?

```
 try {
       File filename = new File(Environment.getExternalStorageDirectory()+"/gphoto4.html"); 
            filename.createNewFile(); 
            String cmd = "logcat -d -f "+filename.getAbsolutePath();
            Runtime.getRuntime().exec(cmd);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

```