Package org.opencms.module
Class CmsModuleLog
java.lang.Object
org.opencms.module.CmsModuleLog
This class is responsible for reading and writing module import/export log messages, to be used by CmsResourceWrapperModules.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLogFile
(String moduleName) Gets the log file for the given module name.void
log
(String moduleName, CmsModuleLog.Action action, boolean ok) Logs a module action.byte[]
Reads the log file and returns the data.
-
Field Details
-
DATE_FORMAT_STRING
Date format for log messages.- See Also:
-
-
Constructor Details
-
CmsModuleLog
public CmsModuleLog()
-
-
Method Details
-
getLogFile
Gets the log file for the given module name.- Parameters:
moduleName
- the module- Returns:
- the log file
-
log
Logs a module action.- Parameters:
moduleName
- the module nameaction
- the actionok
- true if the action was successful
-
readLog
Reads the log file and returns the data.- Parameters:
moduleName
- the module name- Returns:
- the log contents
- Throws:
IOException
- if something goes wrong
-