private void createLogger(String loggerName, String resource, String directory, String fileName, String pattern) {
    setLoggerName(loggerName);
    setResource(resource);
    setDirectory(directory);
    setFileName(fileName);
    setPattern(pattern);
    appenders = new ArrayList<LoggerAppender>();
  }