if ( logFile != null ) {
boolean header = !logFile.exists();
System.out.println("Logging to " + logFile.getPath());
FileOutputStream fos = new FileOutputStream(logFile.getPath(), true);
LoggingStream ls = new LoggingStream(fos);
PrintStream ps = new PrintStream(ls, true);
if ( header ) {
String s = dbXML.Title + " " + dbXML.Version + " Console Log File";
ps.println(s);