Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2846

[StaticExternalLog] Two appenders with the same category but a different level

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.2.0
    • None
    • None
    • 2 - Long term
    • 1 - Easy

      I have defined two ExternalLogExtensionPoint with StaticExternalLog, here is the configuration :

                 <extension point="org.ametys.runtime.log.ExternalLogExtensionPoint"
                             id="fr.ametys.onisep.ideo2.plugins.reprise.log.error"
                             class="org.ametys.runtime.log.StaticExternalLog">
                     <appender-name>reprise-error</appender-name>
                     <category-name>my.package.ContentUtils</category-name>
                     <file-prefix>reprise-error</file-prefix>
                     <additive>false</additive>
                     <rolling-file>true</rolling-file>
                     <log-level>ERROR</log-level>
                  </extension>
                  
                  <extension point="org.ametys.runtime.log.ExternalLogExtensionPoint"
                             id="fr.ametys.onisep.ideo2.plugins.reprise.log.content"
                             class="org.ametys.runtime.log.StaticExternalLog">
                     <appender-name>reprise-content</appender-name>
                     <category-name>my.package.ContentUtils</category-name>
                     <file-prefix>reprise-content</file-prefix>
                     <additive>false</additive>
                     <rolling-file>true</rolling-file>
                     <log-level>INFO</log-level>
                  </extension>

      But in the both log files, I get all the logs to INFO level.

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: