code: private String getLogFiles(Logger logger) {
  
          String test = "";
          int count = 0;
          // select the Appender from logger
          for (Appender appender : logger.getAppenders().values()) {
              // only use file appenders
              if (CmsLogFileApp.isFileAppender(appender)) {
                  String fileName = CmsLogFileApp.getFileName(appender);
                  String temp = "";
                  temp = fileName.substring(fileName.lastIndexOf(File.separatorChar) + 1);
                  test = test + temp;
                  count++;
                  break;
              }
          }
  
          //iterate all parent loggers until a logger with appender was found
          while (!logger.equals(LogManager.getRootLogger())) {
  
              logger = logger.getParent();
              // if no Appender found from logger, select the Appender from parent logger
              if (count == 0) {
                  for (Appender appender : logger.getAppenders().values()) {
                      // only use file appenders
                      if (CmsLogFileApp.isFileAppender(appender)) {
                          String fileName = CmsLogFileApp.getFileName(appender);
                          String temp = "";
                          temp = fileName.substring(fileName.lastIndexOf(File.separatorChar) + 1);
                          test = test + temp;
                          count++;
                          break;
                      }
                  }
              }
          }
  
          return test;
      }
docs: Returns log files to given Logger.<p>
  
  @param logger to read files for
  @return path of file