Uploaded image for project: 'Community Edition'
  1. Community Edition
  2. MGNLCE-135

Align the log4j2.xml config with the new Publishing module

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.6.6, 5.7
    • 5.6, 5.6.1
    • None
    • None
    • Yes
    • Kromeriz 143, Kromeriz 144
    • 3

      1) After the release of 5.6, the Logger configuration for Publishing (Activation) in log4j2.xml is still outdated:

          <!-- Activation - additivity is true so logs also go to sub-categories' appenders -->
          <Logger name="info.magnolia.cms.exchange" level="INFO" additivity="true">
            <AppenderRef ref="log-activation"/>
          </Logger>
          <Logger name="info.magnolia.module.activation" level="INFO" additivity="true">
            <AppenderRef ref="log-activation"/>
          </Logger>
      

      2) Also consider renaming all "activation" values to "publishing", see above and also e.g. in this section of the config file:

          <RollingFile name="sync-log-activation"
                       fileName="${magnolia.logs.dir}/magnolia-activation.log"
                       filePattern="${magnolia.logs.dir}/magnolia-activation-%i.log"
                       append="true">
            <PatternLayout pattern="%-5p %c %d{dd.MM.yyyy HH:mm:ss} -- %m%n"/>
            <ThresholdFilter level="ERROR"/>
            <Policies>
              <SizeBasedTriggeringPolicy size="1MB"/>
            </Policies>
            <DefaultRolloverStrategy max="5"/>
          </RollingFile>
          <Async name="log-activation">
            <AppenderRef ref="sync-log-activation"/>
          </Async>
      

      3) When closing the ticket, please guide the DOC team in what needs to be updated on
      https://documentation.magnolia-cms.com/display/DOCS56/Monitoring
      and provide the new information for the update of the page.

        Acceptance criteria

              rsiska Robert Šiška
              mdrapela Martin Drápela
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR