Uploaded image for project: 'Content Translation Extended (CTX)'
  1. Content Translation Extended (CTX)
  2. EXCONTRANS-201

Logging - Adapter Logs - ability for connector to generate its own log on the CMS and set log levels

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • 2.0
    • 2.0
    • None
    • None
    • Scrum Sprint 8

    Description

      Case 1: print log for the whole package to current log files (such as debug level)

      • Solution: Using Tools > Log Tools > Log Levels to configure log level for package info.magnolia.translation.ex

       

      Case 2: print log for the whole package to separate log file

      • Add below configuration to Appenders of log4j2.xml
      <RollingFile name="sync-log-translation-extended"
                   fileName="${magnolia.logs.dir}/magnolia-translation-extended.log"
                   filePattern="${magnolia.logs.dir}/magnolia-translation-extended-%i.log"
                   append="true">
        <PatternLayout pattern="%d{dd.MM.yyyy HH:mm:ss}%m%n"/>
        <Policies>
          <SizeBasedTriggeringPolicy size="1MB"/>
        </Policies>
        <DefaultRolloverStrategy max="5"/>
      </RollingFile>
      <Async name="log-translation-extended">
        <AppenderRef ref="sync-log-translation-extended"/>
      </Async>
      
      • Add below configuration to Loggers of log4j.xml
      <Logger name="info.magnolia.translation.ext" additivity="true" level="DEBUG">
        <AppenderRef ref="log-translation-extended"/>
      </Logger>
      
      • Using Tools > Log Tools > Log Levels to configure log level for package info.magnolia.translation.ex

       

       

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              thanh.lehai Le Hai Thanh
              trung.luu Trung Luu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR

                  Time Tracking

                    Estimated:
                    Original Estimate - 3.5d
                    3.5d
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.5d Time Not Required
                    0.5d