Fix duplicate log appender creation

When using log4j.properties file to override the text log file appender,
the previous code would ignore the appender configured in the log4j
properties file and create a hardcoded default text log file.

Fix this by checking if an appender already exists before creating it.

Original-Change: https://gerrit-review.googlesource.com/c/modules/global-refdb/+/375596
Change-Id: I99f698c27e0f2479ea111f044c0f43d1d9bd4e30
1 file changed
tree: f8c1670b54d472fdd17ef8dbf27d55eda51e0ffb
  1. src/
  2. .gitignore
  3. bindings.md
  4. BUILD
  5. config.md
  6. Jenkinsfile
  7. LICENSE
  8. metrics.md
  9. pom.xml
  10. README.md
README.md

Gerrit interface to a global-refdb

Global ref-database interface for use with Gerrit Code Review.

Enables the de-coupling between Gerrit, its libModules and the different implementations of a globally shared ref-database.

Design

The design for a global ref-db interface can be found as part of the multi-site design documentation, where it first originated and was approved by the community.

Bindings

In order to consume this library, some Guice bindings need to be registered appropriately. More information in the relevant documentation.

Metrics

Global ref-database expose metrics to measure the global ref-database operation latency. List of the available metrics can be found here.