Audit Log Web Module for OpenMRS Wiki Page
Audit Log Web Module for OpenMRS JIRA Board
This module provides enhanced audit logging capabilities for OpenMRS, allowing administrators and developers to track, view, and analyze changes made to data within the system through a user-friendly web interface.
Pre-requisites:
- Java 1.8+
- Maven 2.x+
- OpenMRS SDK (optional, but recommended for easier module management)
- OpenMRS instance running (for testing purposes)
- Git (to clone the repository)
- An IDE (like IntelliJ IDEA or Eclipse) for easier development and debugging
To build the module from source, clone this repo:
git clone https://github.com/openmrs/openmrs-module-auditlogweb
Navigate into the openmrs-module-auditlogweb
directory and compile the module using Maven:
cd openmrs-module-auditlogweb && mvn clean package
- Build the module to produce the .omod file.
- Use the OpenMRS Administration > Manage Modules screen to upload and install the .omod file.
Alternative Installation Method: If OpenMRS SDk is installed, you can use the following command to install the module:
mvn openmrs-sdk:deploy -DserverId={serverName} -DmoduleVersion=1.0.0-SNAPSHOT
As a developer, you can also use the OpenMRS SDK to watch the module by your running OpenMRS instance.
mvn openmrs-sdk:watch -DserverId={serverName} -DmoduleVersion=1.0.0-SNAPSHOT
This will automatically deploy changes to the module without needing to manually upload the .omod file each time.
If uploads are not allowed from the web (changable via a runtime property), you can drop the omod into the ~/.OpenMRS/modules folder. (Where ~/.OpenMRS is assumed to be the Application Data Directory that the running openmrs is currently using.) After putting the file in there simply restart OpenMRS/tomcat and the module will be loaded and started.