コード例 #1
0
ファイル: Logger.java プロジェクト: vreeze42/nicoprj
  public Logger(String filename) throws FileNotFoundException, IOException {
    // ps = new PrintStream(new FileOutputStream(new File(filename)));
    File f = new File(filename);
    fos = new FileOutputStream(f);
    ps = new PrintStream(fos);
    ps.println("Logging started");
    ps.flush();

    sw = new Stopwatch();
    sw.reset();
  }