Here you can find the source of logMsg(String msg)
public static void logMsg(String msg)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { private static PrintWriter out; public static void logMsg(String msg) { try {/*from ww w .j a v a 2s . c om*/ if (out == null) init(); } catch (Exception e) { e.printStackTrace(); } out.println(msg); out.flush(); System.out.println(msg); } public static void init() throws Exception { File file = new File("/tmp/benchlog-storm.txt"); out = new PrintWriter(file); } }