public static void writeRouteLog(MessageEvent e, String msg) throws IOException{
        
        buf.setLength(0);
        buf.append(getCurrentTime());
        buf.append(" Данные обработаны для ");
        buf.append(e.getRemoteAddress());
        buf.append(" Message: ");
        buf.append(msg);
        buf.append("\r\n");
        
        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(routeLogDir + "/work.txt",true)));
        try{
            //throw new Exception("Ошибка записи данных");
            out.print(buf);
            out.flush();
        }catch(Exception ex){
            writeErrorLog(ex.getMessage().toString());
        }finally{
            RequestHandler.closeConn(e);
            out.close();   
        }
     }