public static void main(String[] args) {
        // settings for log
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        System.setProperty("current.date", dateFormat.format(new Date()));
        // set path
        if (args.length > 1) path = args[1];
        File cfgFile = new File(args[0]);
        PropertyConfigurator.configure(cfgFile.getAbsolutePath());
        
        StringBuilder sb = new StringBuilder()
            .append("Date").append(";")
            .append("Request time").append(";")
            .append("Response time").append(";")
            .append("Request (USSD)").append(";")
            .append("Response").append(";")
            .append("Message");
        csv.debug(sb);
        
        File[] files = getFilesInDir(path);
        Set<File> flist = new TreeSet<File>(Arrays.asList(files));
        for (File file : flist) {
            read(file.getAbsolutePath());
        }
        System.out.println("Total files: " + files.length);
        System.out.println("After all:");
        for (Stat stat : stats) System.out.println(stat);
    }