Skip to content

Commit

Permalink
Deepthi M|BAH-3977|Updated log4j2.xml file and removed log4j listener…
Browse files Browse the repository at this point in the history
… as its no longer required with log4j2. (#141)
  • Loading branch information
deepthi-mantena authored Jun 20, 2024
1 parent 9d0e882 commit 6c13579
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions bahmni-emr/resources/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>

<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>

<listener>
<listener-class>org.openmrs.web.Listener</listener-class>
<!-- extends ContextLoader -->
Expand Down
16 changes: 8 additions & 8 deletions bahmni-erp-connect/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

<?xml version="1.0" encoding="UTF-8"?>
<Configuration xmlns="http://logging.apache.org/log4j/2.0/">
<Configuration xmlns="http://logging.apache.org/log4j/2.0/config">
<Appenders>
<RollingFile name="fileAppender"
fileName="/var/log/bahmni-erp-connect/bahmni-erp-connect.log">
fileName="/var/log/bahmni-erp-connect/bahmni-erp-connect.log"
filePattern="/var/log/bahmni-erp-connect/bahmni-erp-connect-%i.log.gz">
<PatternLayout pattern="%d %-5p [openerp-atomfeed-service] [%c] %m%n"/>
<Policies>
<SizeBasedTriggeringPolicy size="10MB"/>
Expand All @@ -13,9 +13,9 @@
</Appenders>

<Loggers>
<Logger name="org.springframework" level ="WARN"/>
<Logger name="org.springframework" level="WARN"/>
<Root level="WARN">
<AppenderRef ref="fileAppender"/>
</Root>
</Loggers>
<Root level="WARN">
<AppenderRef ref="fileAppender" />
</Root>
</Configuration>
</Configuration>

0 comments on commit 6c13579

Please sign in to comment.