Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1627

online translator from Log4.properties doesn't work

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Translator
    • None

    Description

      open in browser https://logback.qos.ch/translator/

      paste

      zookeeper.root.logger=CONSOLE
      zookeeper.console.threshold=WARN
      log4j.rootLogger=${zookeeper.root.logger}
      log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
      log4j.appender.CONSOLE.Threshold=${zookeeper.console.threshold}
      log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
      log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n
      
      

      press "Translate"

      got

      <?xml version="1.0" encoding="UTF-8"?><!--  Built in 2022-04-10 06:13 by logback-translator            -->
      <!--                                                             -->
      <!--  For sponsoring SLF4J/logback/reload4j projects see         -->
      <!--    https://github.com/sponsors/qos-ch                       -->
      <!--                                                             -->
      <configuration>
        <root level="${zookeeper.root.logger}"/>
      </configuration>
      

      exptected properly translated `console.threshold` and `appener.CONSOLE.layout`

       

      Attachments

        Activity

          People

            logback-dev Logback dev list
            Slach Eugene Klimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: