private void logFilter(String channel, String sender, String message, String type)
    {
        PrintWriter out = null;
        try {
            out = new PrintWriter(new BufferedWriter(new FileWriter(FILTERLOG, true)));
            SimpleDateFormat logsdf = new SimpleDateFormat("MM/dd/yy h:mm:ss aa");
            out.println(logsdf.format(new Date()) + " " + channel + " " + sender + " " + type + " " + message);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (out != null) {
                out.close();
            }
        }
    }