Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add additivity=false to prevent double logging #843

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions server/embedded/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,19 @@ account managers so that we can coordinate edits with other customized copies of
</Root>

<!-- category for server side script messages -->
<Logger name="org.labkey.api.script.ScriptService.Console" level="info">
<Logger name="org.labkey.api.script.ScriptService.Console" additivity="false" level="info">
labkey-willm marked this conversation as resolved.
Show resolved Hide resolved
<AppenderRef ref="SessionAppender"/>
</Logger>

<!-- category for Mule messages -->
<Logger name="org.mule.MuleManager" level="info"/>
<Logger name="org.mule.MuleManager" additivity="false" level="info"/>

<!--
<Logger name="org.labkey.pipeline.mule.transformers" level="debug"/>
-->

<!-- category for jasper messages -->
<Logger name="org.apache.jasper" level="warn"/>
<Logger name="org.apache.jasper" additivity="false" level="warn"/>

<Logger name="org.labkey" />

Expand All @@ -201,7 +201,7 @@ account managers so that we can coordinate edits with other customized copies of
<AppenderRef ref="LABKEY"/>
</Logger> -->

<Logger name="mondrian." level="info" />
<Logger name="mondrian." additivity="false" level="info" />

<!--
<Logger name="org.labkey.wiki" level="debug"/>
Expand All @@ -212,13 +212,13 @@ account managers so that we can coordinate edits with other customized copies of
-->

<!-- only show errors from PipelineJob output -->
<Logger name="org.labkey.api.pipeline.PipelineJob" level="error"/>
<Logger name="org.labkey.api.pipeline.PipelineJob" additivity="false" level="error"/>

<!-- don't need to log PDFBox errors (e.g., FlateFilter, PDCIDFontType2) -->
<Logger name="org.apache.pdfbox" level="fatal"/>
<Logger name="org.apache.pdfbox" additivity="false" level="fatal"/>

<!-- Suppress EHCache "maxElementsInMemory of 0" warnings, Issue 49593 -->
<Logger name="net.sf.ehcache.config.CacheConfiguration" level="error"/>
<Logger name="net.sf.ehcache.config.CacheConfiguration" additivity="false" level="error"/>

<!-- this is a very verbose logger for security/permissions checking -->
<!--
Expand All @@ -232,15 +232,15 @@ account managers so that we can coordinate edits with other customized copies of
<Logger name="org.labkey.api.data.Table" level="debug"/>
-->

<Logger name="org.labkey.api.data"/>
<Logger name="org.labkey.api.data" additivity="false"/>

<Logger name="org.labkey.api.dataiterator"/>
<Logger name="org.labkey.api.dataiterator" additivity="false"/>

<Logger name="org.labkey.docker">
<Logger name="org.labkey.docker" additivity="false">
<level value="info"/>
</Logger>

<Logger name="org.labkey.rstudio" level="info"/>
<Logger name="org.labkey.rstudio" additivity="false" level="info"/>

<!--
<Logger name="org.labkey.api.cache" level="debug"/>
Expand Down Expand Up @@ -274,11 +274,11 @@ account managers so that we can coordinate edits with other customized copies of
<AppenderRef ref="INDEXED_DOCUMENTS"/>
</Logger>

<Logger name="org.labkey.api.util.DebugInfoDumper" level="debug">
<Logger name="org.labkey.api.util.DebugInfoDumper" additivity="false" level="debug">
<AppenderRef ref="THREAD_DUMP"/>
</Logger>

<Logger name="org.labkey.core.admin.AdminController.ContentSecurityPolicyReportAction" additivity="false" level="warn">
<Logger name="org.labkey.core.admin.AdminController.ContentSecurityPolicyReportAction" additivity="false" level="warn">
labkey-willm marked this conversation as resolved.
Show resolved Hide resolved
<AppenderRef ref="CSP_REPORT" />
<AppenderRef ref="CONSOLE"/>
</Logger>
Expand All @@ -301,7 +301,7 @@ account managers so that we can coordinate edits with other customized copies of
<AppenderRef ref="QUERY_STATS"/>
</Logger>

<Logger name="org.labkey.audit.event" level="OFF">
<Logger name="org.labkey.audit.event" additivity="false" level="OFF">
labkey-willm marked this conversation as resolved.
Show resolved Hide resolved
<AppenderRef ref="LABKEY_AUDIT"/>
<AppenderRef ref="CONSOLE"/>
</Logger>
Expand Down