public static String formatMsg(long time, String name, CharSequence msg) {
        String s1 = new SimpleDateFormat("HH:mm:ss").format(time);
        return String.format("%s %s: %s\n", s1, name, msg);
    }
Get file name from file path

@param path file path
@return file name
src/cn/ieclipse/smartim/common/IMUtils.java