Java Log Message logThis(String id)

Here you can find the source of logThis(String id)

Description

log This

License

Open Source License

Declaration

public static void logThis(String id) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class Main {
    public static void logThis(String id) {
        try {//from www .  j a  va 2 s  . co  m
            BufferedWriter bfw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("tmp"), "utf-8"));
            bfw.write(id);
            bfw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}

Related

  1. LogMsg(PrintStream logger, String msg)
  2. logMsg(String msg)
  3. LogMsg(String s)
  4. logRawToConsole(String msg)
  5. logString(String logtext)