Config ivy log in GCP
Dear ivy team support,
----------
Currently, I'm doing some configuration for the ivy log in GCP environment.
Here is my config:
----------
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
<param name="Threshold" value="INFO"/>
<param name="Target" value="System.out" />
<layout class="ch.ivyteam.log.layout.IvyLog4jLayout">
<param name="DateFormat" value="yyyy-MM-dd HH:mm:ss.SSS"/>
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="INFO"/>
<param name="LevelMax" value="WARN"/>
<param name="AcceptOnMatch" value="true"/>
</filter>
</appender>
<!-- appender that writes log messages with priority ERROR or higher to stderr -->
<appender name="ConsoleAppenderError" class="org.apache.log4j.ConsoleAppender">
<param name="Threshold" value="ERROR"/>
<param name="Target" value="System.err" />
<layout class="ch.ivyteam.log.layout.IvyLog4jLayout">
<param name="DateFormat" value="yyyy-MM-dd HH:mm:ss.SSS"/>
</layout>
</appender>
<!-- Disable CXF warning at startup (missing META-INF/cxf/cxf.xml) -->
<category name="org.apache.cxf.bus.spring" class="ch.ivyteam.log.Logger">
<priority value="ERROR"/>
</category>
----------
But I got the problem:
With the exception, it will print each line of exception in the stackDriver log like this picture:
![Alt text](https://imgur.com/a/jdWB8ft)<img alt="alt text" src="https://imgur.com/a/jdWB8ft">
We use fluentd and Stackdriver to display the log. <br>
As I understood, we have 2 steps to display the log in the GCP <br>
1. Step1: Step 1: Base on the configuration in the log4jconfig.xml, Ivy will print the log to the console with the corresponding format so that fluentd can read it and display in the log view<br>
2. Step2: Step 2: fluentd will read that log and display in the log view.<br>
When I check the step2, step 2, it is correct because the fluentd displayed exactly the result of step1. step 1. <br>
But step1 step 1 got a problem, it prints incorrect incorrectly the entry log. I have 1 block exception but it prints to multi-entry log. <br>
My expectation: Only 1 entry log will be printed for the exception case. <br>
Could you please give me some advice? <br>
Thank you