if(!fileErrorLog.exists()){
if(!fileErrorLog.createNewFile()){
if(config.isDemonizied()){
System.err.println("Unable to create the error log file.");
}
throw new ReportFileCreationException("Unable to create the " +
fileErrorLog.getAbsolutePath() + ".");
}
}
writeError = new BufferedWriter(new FileWriter(fileErrorLog, true));
if(config.getDebugLog()){
if(!fileDebugLog.exists()){
if(!fileDebugLog.createNewFile()){
reportErrorLog("localhost", "Unable to create the debug log file");
throw new ReportFileCreationException("Unable to create the " +
fileDebugLog.getAbsolutePath() + ".");
}
}
writeDebug = new BufferedWriter(new FileWriter(fileDebugLog, true), buffSize);
}
if(config.getVerbouseLog()){
if(!fileVerbouseLog.exists()){
if(!fileVerbouseLog.createNewFile()){
reportErrorLog("localhost", "Unable to create the verbouse log file");
throw new ReportFileCreationException("Unable to create the " +
fileVerbouseLog.getAbsolutePath() + ".");
}
}
writeVerbouse = new BufferedWriter(new FileWriter(fileVerbouseLog, true));
}
if(!fileServerLog.exists()){
if(!fileServerLog.createNewFile()){
reportErrorLog("localhost", "Unable to create the server log file");
throw new ReportFileCreationException("Unable to create the " +
fileServerLog.getAbsolutePath() + ".");
}
}
writeServer = new BufferedWriter(new FileWriter(fileServerLog, true));