code: public synchronized byte[] readLog(String moduleName) throws IOException {
  
          File logFile = getLogFile(moduleName);
          if (logFile.exists()) {
              return CmsFileUtil.readFile(logFile);
          } else {
              return new byte[] {};
          }
      }
docs: Reads the log file and returns the data.<p>
  
  @param moduleName the module name
  @return the log contents
  
  @throws IOException if something goes wrong