public static void escribirLog(String s) {
        s = s.toUpperCase();
        BufferedWriter out = null;
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            File file = new File("estudio_juridico.log");
            if (!file.exists()) {
                if (file.createNewFile()) {
                    out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file, true), "UTF8"));
                    out.write("[" + new Date() + "] Creacion Log de Programa \"estudio_juridico.log\"");
                    out.newLine();
                    out.close();
                    file = new File("estudio_juridico.log");
                } else {
                    System.out.println("No ha podido ser creado el fichero");
                }
            }
            out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file, true), "UTF8"));
            out.write(s);
            out.newLine();
            out.close();
        } catch (FileNotFoundException ex) {
            JOptionPane.showMessageDialog(null, ex);
            Logger
                    .getLogger(ManagerArchivo.class
                            .getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger(ManagerArchivo.class
                    .getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(ManagerArchivo.class
                    .getName()).log(Level.SEVERE, null, ex);
        } finally {
            try {
                out.close();
            } catch (IOException ex) {
                Logger.getLogger(ManagerArchivo.class
                        .getName()).log(Level.SEVERE, null, ex);
            }
        }
    }