public class CmsModuleLog extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsModuleLog.Action
Action type.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATE_FORMAT_STRING
Date format for log messages.
|
| Constructor and Description |
|---|
CmsModuleLog() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getLogFile(java.lang.String moduleName)
Gets the log file for the given module name.
|
void |
log(java.lang.String moduleName,
CmsModuleLog.Action action,
boolean ok)
Logs a module action.
|
byte[] |
readLog(java.lang.String moduleName)
Reads the log file and returns the data.
|
public static final java.lang.String DATE_FORMAT_STRING
public CmsModuleLog()
public java.io.File getLogFile(java.lang.String moduleName)
moduleName - the modulepublic void log(java.lang.String moduleName, CmsModuleLog.Action action, boolean ok)
moduleName - the module nameaction - the actionok - true if the action was successfulpublic byte[] readLog(java.lang.String moduleName) throws java.io.IOException
moduleName - the module namejava.io.IOException - if something goes wrong