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

${HOSTNAME} as FQDN

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.3.0-alpha1
    • None
    • None
    • None

    Description

      At the moment if we use HOSTNAME in our logback.xml, it is a short version of hostname. The problem with it, we've got two environments testing and production.

      In testing env we've got the server webservice-01.ipc00.pro00.eu.firm.com, on the other hand in production we've got webservice-01.ipc00.tst00.eu.firm.com . When the both sever write some logs in our kibana we can't make out, which server logs, because the hostname for both is webservice-01

      If you would take for HOSTNAME InetAddress.html#getCanonicalHostName it would much better.

      PS. I know I can define PropertyDefiner and inject what I want, but it quite silly that the HOSTNAME variable doesn't work properly in logback

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            rti Roman T
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: