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

Unable to use 'receiver' configuration from Groovy

    XMLWordPrintable

Details

    Description

      It is currently impossible to use the receiver within the groovy configuration, even though it is coded (although it is undocumented). The following groovy will cause the issue:

      receiver("SOCKET_RECEIVER", ch.qos.logback.classic.net.server.ServerSocketReceiver) {
      port = 4560
      }

      Digging into the code, there is a typo in the addInfo call in ch.qos.logback.classic.gaffer.ConfigurationDelegate#receiver. It's referencing clazz.name, when it should be referencing aClass.name.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            johnedc John Crygier
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: