Class CmsModuleLog

java.lang.Object
org.opencms.module.CmsModuleLog

public class CmsModuleLog extends Object
This class is responsible for reading and writing module import/export log messages, to be used by CmsResourceWrapperModules.
  • Field Details

  • Constructor Details

  • Method Details

    • getLogFile

      public File getLogFile(String moduleName)
      Gets the log file for the given module name.

      Parameters:
      moduleName - the module
      Returns:
      the log file
    • log

      public void log(String moduleName, CmsModuleLog.Action action, boolean ok)
      Logs a module action.

      Parameters:
      moduleName - the module name
      action - the action
      ok - true if the action was successful
    • readLog

      public byte[] readLog(String moduleName) throws IOException
      Reads the log file and returns the data.

      Parameters:
      moduleName - the module name
      Returns:
      the log contents
      Throws:
      IOException - if something goes wrong