public static void write(Context c,String msg){
  String logFile=PrefStore.getLogFile(c);
  BufferedWriter writer=null;
  try {
    writer=new BufferedWriter(new FileWriter(logFile,true));
    writer.write(msg);
  }
 catch (  IOException e) {
  }
 finally {
    close(writer);
  }
}

public static void write ( Context c , String msg ) { String logFile = PrefStore . getLogFile ( c ) ; BufferedWriter writer = null ; try { writer = new BufferedWriter ( new FileWriter ( logFile , true ) ) ; writer . write ( msg ) ; } catch ( IOException e ) { } finally { close ( writer ) ; } }
write to log file
