Here you can find the source of closeLog()
public static void closeLog()
//package com.java2s; //License from project: Open Source License import java.io.FileWriter; import java.io.IOException; public class Main { private static FileWriter fw; public static void closeLog() { try {//w ww. j a va 2 s. co m if (fw != null) { fw.close(); } } catch (IOException e) { e.printStackTrace(); } System.err.println("NwtUtil.closeLog"); } }