This README provides details to configure this module.
This module requires a logging table called "ogc_services_log" in a postgres database.
You will find the details about the data structure in the file database.sql
The test cases are using the appender configuration present in the src/test/resources/org/georchestra/ogcservstatistics/log4j.properties
You should adjust the key values taking into account your postgres configuration.
log4j.appender.OGCSERVICES.jdbcURL=jdbc:postgresql://[host]:[port]/[database]
log4j.appender.OGCSERVICES.databaseUser=[user]
log4j.appender.OGCSERVICES.databasePassword=[pwd]
Example:
log4j.appender.OGCSERVICES.jdbcURL=jdbc:postgresql://localhost:5432/testdb
log4j.appender.OGCSERVICES.databaseUser=postgres
log4j.appender.OGCSERVICES.databasePassword=postgres
The following Java VM parameters could be useful:
- Enable assertions: -ea
- Print the loaded values: -Dlog4j.debug