private static void log2File(LEVEL level,String tag,String msg,Throwable tr){
  if (generator == null) {
    generator=new FilePathGenerator.DefaultFilePathGenerator("","","");
  }
  if (formatter == null) {
    formatter=new LogFormatter.EclipseFormatter();
  }
  boolean isFilter=false;
  if (filters != null) {
    for (    LogFilter f : filters) {
      if (f.filter(level,tag,msg)) {
        isFilter=true;
        break;
      }
    }
  }
  if (!isFilter && !TextUtils.isEmpty(generator.getPath())) {
    Log2File.log2file(generator.getPath(),formatter.format(level,tag,msg,tr));
  }
}

private static void log2File ( LEVEL level , String tag , String msg , Throwable tr ) { if ( generator == null ) { generator = new FilePathGenerator . DefaultFilePathGenerator ( "" , "" , "" ) ; } if ( formatter == null ) { formatter = new LogFormatter . EclipseFormatter ( ) ; } boolean isFilter = false ; if ( filters != null ) { for ( LogFilter f : filters ) { if ( f . filter ( level , tag , msg ) ) { isFilter = true ; break ; } } } if ( ! isFilter && ! TextUtils . isEmpty ( generator . getPath ( ) ) ) { Log2File . log2file ( generator . getPath ( ) , formatter . format ( level , tag , msg , tr ) ) ; } }
write the log messages to the file .
