private void writeLog(String log){
  File file=new File(CrashHandlerDefault.Log_Default_Path + "/" + formatter.format(new Date())+ ".log");
  try {
    FileOutputStream fileOutputStream=new FileOutputStream(file);
    byte[] bytes=log.getBytes();
    fileOutputStream.write(bytes);
    fileOutputStream.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

private void writeLog ( String log ) { File file = new File ( CrashHandlerDefault . Log_Default_Path + "/" + formatter . format ( new Date ( ) ) + ".log" ) ; try { FileOutputStream fileOutputStream = new FileOutputStream ( file ) ; byte [ ] bytes = log . getBytes ( ) ; fileOutputStream . write ( bytes ) ; fileOutputStream . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
write log in file
