((PatternLayout) layout).getConversionPattern());
}
}
if (appender instanceof FileAppender) {
FileAppender fileAppender = (FileAppender) appender;
String fileName = fileAppender.getFile();
File logFile = new File(fileName);
if (!logFile.isAbsolute()) {
if (fileName.startsWith(".")) {
fileName = fileName.substring(1);
}
fileName = (System.getProperty(ServerConstants.CARBON_HOME) + "/" +
fileName).replace('\\', '/');
fileAppender.setFile(fileName);
fileAppender.activateOptions();
}
appenderResource.addProperty(LoggingConstants.AppenderProperties.LOG_FILE_NAME, fileName);
appenderResource.addProperty(LoggingConstants.AppenderProperties.IS_FILE_APPENDER,
Boolean.toString(true));
} else {