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

SocketAppender is reporting an WARN if connection could not be established.

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 0.9.29
    • 0.9.17
    • logback-classic
    • None
    • java version "1.6.0_15"
      Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
      Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)

    Description

      This is a followup to LBCLASSIC-143 which changed the message from ERROR to WARN.

      The WARN message still results in a dump of the logging status messages.
      This means that a whole bunch of text is printed to the console whenever Lilith is started - and it looks quite broken due to the stacktrace.

      So there are two possible solutions for this problem:
      a) the status is only printed in case of an ERROR
      b) SocketAppender considers this as an INFO instead of a WARN.

      I think b) would be reasonable. Other WARNs are much more important, like duplicate logback.xml.

      Lilith is only an example, btw.
      We routinely add SocketAppender[localhost] to our console applications. In case of trouble one can simply start Lilith and check the logs that way instead of reading them on the console.

      The default use-case is executing the app without Lilith, though, so we get the logback status messages on every start - which is quite noisy and annoying.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: