Commit 09abc7ad by Adi Amir

bugfix: no logger prints were shown docker's console. added the correct log4j.xml file.

parent 805e0383
Showing with 37 additions and 3 deletions
FROM municipalitybank.com:5050/ipgallery.common.java/microservice FROM municipalitybank.com:5050/ipgallery.common.java/microservice
COPY cfg/log4j.xml /logs/conf/
COPY build/libs/mde-*.jar /usr/ COPY build/libs/mde-*.jar /usr/
COPY cfg/config.properties /opt/mcx/config/ COPY cfg/config.properties /opt/mcx/config/
COPY cfg/*.json /opt/mcx/config/ COPY cfg/*.json /opt/mcx/config/
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true"
xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" />
</layout>
</appender>
<appender name="file" class="org.apache.log4j.RollingFileAppender">
<param name="append" value="false" />
<param name="maxBackupIndex" value="5" />
<param name="maxFileSize" value="2MB" />
<param name="file" value="/logs/LogEvents.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{yyyy-MM-dd HH:mm:ss} %-5p - %m%n" />
</layout>
</appender>
<root>
<!-- Levels: off, fatal, error, warn, info, debug, trace, all -->
<level value="info"/>
<appender-ref ref="console" />
</root>
</log4j:configuration>
\ No newline at end of file
...@@ -2,12 +2,12 @@ mde: ...@@ -2,12 +2,12 @@ mde:
environment: environment:
IPG_ENV_PARAMS: "-Dds.IpAddress=172.16.1.72:8012#\ IPG_ENV_PARAMS: "-Dds.IpAddress=172.16.1.72:8012#\
-Dredis.host=172.16.1.151#\ -Dredis.host=172.16.1.151#\
-Dmde.cisco.username=devoperator11@cdp.com#\ -Dmde.cisco.username=operator14@cdp.com#\
-Dmde.cisco.password=ejlFK0g9OSRK#\ -Dmde.cisco.password=R0AxOENicTQ=#\
-Dmde.cisco.clientId=a27b18484c3c4e08a7c193e42c639347#\ -Dmde.cisco.clientId=a27b18484c3c4e08a7c193e42c639347#\
-Dmde.cisco.clientSecret=b863de8f453c4a05A88126F45B958CF1" -Dmde.cisco.clientSecret=b863de8f453c4a05A88126F45B958CF1"
USE_DEBUG: "yes" USE_DEBUG: "yes"
image: 172.16.1.212:5050/mcx/mde image: municipalitybank.com:5050/mcx/mde
ports: ports:
- "8200:8000" - "8200:8000"
- "50040:50040" - "50040:50040"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment