Skip to content

Commit

Permalink
MCR-3010 Duplicate warnings about old absolute include mechanism con…
Browse files Browse the repository at this point in the history
…gest logs (#936)

* MCR-3010 add logging filter that fiters duplicate logging events for the old abolute include mechanism

* MCR-3010 remove target marker and use composit filter instead

* MCR-3010 add filter to Docker logging configuration
  • Loading branch information
toKrause authored Dec 5, 2023
1 parent eb13e20 commit 8e12097
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@
</root>
<logger name="org.hibernate" level="error" />
<logger name="org.mycore.frontend.editor.validation" level="info" />
<logger name="org.mycore.common.xml.MCRURIResolver" >
<filters>
<MarkerFilter marker="tryResolveXML" onMatch="NEUTRAL" onMismatch="ACCEPT"/>
<MCRUniqueFilter onMatch="DENY" onMismatch="ACCEPT"/>
</filters>
</logger>
</loggers>
</configuration>
6 changes: 6 additions & 0 deletions mir-module/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@
<logger name="org.mycore.common.xsl.MCRTraceListener" level="info" />
<!-- remove me later -->
<logger name="org.mycore.access.facts" level="debug" />
<logger name="org.mycore.common.xml.MCRURIResolver" >
<filters>
<MarkerFilter marker="tryResolveXML" onMatch="NEUTRAL" onMismatch="ACCEPT"/>
<MCRUniqueFilter onMatch="DENY" onMismatch="ACCEPT"/>
</filters>
</logger>
</loggers>
</configuration>

0 comments on commit 8e12097

Please sign in to comment.