public Logger(boolean debug) throws IOException {
        this.debug = debug;
        initComponents();
        this.setIconImage(new ImageIcon(this.getClass().getResource("/eu/m4gkbeatz/androidtoolkit/resources/log-icon.png")).getImage());
        this.setTitle("Universal Android Toolkit Logger");
        logFile = new File(usrDir + "/.androidtoolkit/logs/log-uat-" + new Date().getTime() + ".uat.log");
        if (!logFile.exists()) {
            logFile.getParentFile().mkdirs();
            logFile.createNewFile();
        }
        writer = new BufferedWriter(new FileWriter(logFile));
    }