-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
Description
log4j2.xml
Provide a docker alternative file
- https://github.com/CDLUC3/mrt-store/blob/main/store-war/src/main/resources/log4j2.xml
- https://github.com/CDLUC3/mrt-ingest/blob/main/ingest-war/src/main/resources/log4j2.xml
Per Google AI
Log4j's default initialization process attempts to find a configuration file (e.g., log4j.properties or log4j2.xml) on the classpath.
You can override this default behavior and explicitly specify the location of your configuration file using the log4j.configuration (for Log4j 1.x) or log4j.configurationFile (for Log4j 2.x) Java system property when launching your application.
Example: java -Dlog4j.configurationFile=path/to/my-log4j2.xml MyApplication
Access logs
Per Google AI...
Modify server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/dev"
prefix="stdout"
suffix=""
pattern="%h %l %u %t "%r" %s %b"
buffered="false"
fileDateFormat="" />
<!-- Other configurations for your Host -->
</Host>