private static void dateDirLog() throws Exception{
        Date date = new Date();
        //создание папки месяца
        try{
            String myDate = dateDirFormat.format(date);
            File myDateDir = new File(LogDir + "/" + myDate);
            myDateDir.mkdir();
            dateDir = myDateDir.getAbsolutePath();
        }catch(Exception e){
            throw new Exception (e);
        }
    }