Skip to content

Commit

Permalink
fix fits logging (#2) (#251)
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Shaw <108362375+seth-shaw-asu@users.noreply.github.com>
  • Loading branch information
nigelgbanks and seth-shaw-asu authored Oct 14, 2022
1 parent b92afd8 commit ba31a7d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fits/rootfs/etc/confd/conf.d/log4j.properties.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[template]
src = "log4j.properties.tmpl"
dest = "/opt/tomcat/webapps/fits/WEB-INF/classes/log4j.properties"
dest = "/opt/fits/log4j.properties"
uid = 100
gid = 1000
mode = "0640"
Expand Down
7 changes: 7 additions & 0 deletions fits/rootfs/etc/confd/conf.d/log4j2.xml.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[template]
src = "log4j2.xml.tmpl"
dest = "/opt/tomcat/webapps/fits/WEB-INF/classes/log4j2.xml"
uid = 100
gid = 1000
mode = "0640"
keys = [ "/" ]
16 changes: 16 additions & 0 deletions fits/rootfs/etc/confd/templates/log4j2.xml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d %-5p - (%C{1}:%L) - %m%n" />
</Console>
</Appenders>
<Loggers>
<Logger name="edu.harvard.hul.ois.fits" level="info" />
<Logger name="edu.harvard.hul.ois.jhove" level="error" />
<Logger name="org.apache.tika" level="error" />
<Root level="{{ getenv "FITS_SERVICE_LOG_LEVEL" }}">
<AppenderRef ref="STDOUT" />
</Root>
</Loggers>
</Configuration>

0 comments on commit ba31a7d

Please sign in to comment.