Skip to content

Commit

Permalink
#2695 slf4j/logback logs are too verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
pdulth authored and tguiu committed Oct 6, 2023
1 parent 9d62019 commit d0ea1c6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
</programArgsMac>
<vmArgs>-Dosgi.requiredJavaVersion=17
-Dosgi.dataAreaRequiresExplicitInit=true
-Dpde.jreProfile=JavaSE-17
-Dpde.jreProfile=JavaSE-17
-Dlogback.configurationFile=configuration/logback.xml
-Xms1000m
-Xmx3000m
-Xss4m
Expand Down
13 changes: 13 additions & 0 deletions releng/plugins/org.polarsys.capella.rcp.product/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- Some internal Capella components uses slf4j to log output. logback is installed on Capella and log them into the console -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
</configuration>
7 changes: 7 additions & 0 deletions releng/plugins/org.polarsys.capella.rcp.product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@
<replacefilter token="eclipse.application=org.polarsys.capella.core.platform.sirius.ui.perspective.id" value="eclipse.application=org.polarsys.capella.core.platform.sirius.ui.perspective.id${line.separator}org.eclipse.update.reconcile=false"/>
</replace>

<!-- Copy logback.xml into configuration folder -->
<copy file="logback.xml" tofile="${project.build.directory}/products/org.polarsys.capella.rcp.product/linux/gtk/x86_64/configuration/logback.xml" ></copy>
<copy file="logback.xml" tofile="${project.build.directory}/products/org.polarsys.capella.rcp.product/linux/gtk/aarch64/configuration/logback.xml" ></copy>
<copy file="logback.xml" tofile="${project.build.directory}/products/org.polarsys.capella.rcp.product/macosx/cocoa/x86_64/Capella.app/Contents/Eclipse/configuration/logback.xml" ></copy>
<copy file="logback.xml" tofile="${project.build.directory}/products/org.polarsys.capella.rcp.product/macosx/cocoa/aarch64/Capella.app/Contents/Eclipse/configuration/logback.xml" ></copy>
<copy file="logback.xml" tofile="${project.build.directory}/products/org.polarsys.capella.rcp.product/win32/win32/x86_64/configuration/logback.xml" ></copy>

<!-- Move the Linux JRE into the product -->
<move todir="${project.build.directory}/products/org.polarsys.capella.rcp.product/linux/gtk/x86_64/jre" includeEmptyDirs="yes">
<fileset dir="../../../linuxJRE/jre">
Expand Down

0 comments on commit d0ea1c6

Please sign in to comment.