0

I've looked all over the documentation, but was unable to find one. How can I achieve this?

Eldon Hipolito
  • 704
  • 1
  • 8
  • 24

1 Answers1

0

According to the Audit4j documentation and javadoc there are multiple ways to specify the configuration:

  1. It can be injected into the Context directly by calling static methods of the Context class (e.g. at application startup before doing any audit!):
  2. Other ways to specify the path to the configuration file without manually initializing the Context are:
    • Setting path in environment variable "AUDIT4J_CONF_FILE_PATH"
    • Setting path in Java system property variable "audit4j.conf.file.path"
  3. Also the configuration file can be put into the application classpath or the user directory. In this case the name of the configuration file has to be "audit4j.conf.yml" or "audit4j.conf.yaml" for YAML style or "audit4j.conf.xml" for XML style.
ltlBeBoy
  • 1,242
  • 16
  • 23