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

SocketAppender missing log messages after restart of SimpleSocketServer

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.15
    • logback-classic
    • None

    Description

      Hello Logback team,

      I have a couple of web apps running in a tomcat and sending some log messages to a SimpleSocketServer.
      Every webapp is using its own LoggingContext by means of the JNDIContextSelector.

      The SocketAppender is configures as followed:

      <appender name="SOCKET" class="ch.qos.logback.classic.net.SocketAppender">
      <RemoteHost>192.168.100.161</RemoteHost>
      <Port>6000</Port>
      <ReconnectionDelay>1000</ReconnectionDelay>
      <IncludeCallerData>false</IncludeCallerData>
      </appender>

      In general, this constellation works fine for me. But if I restart the SimpleSocketServer only some of the webapps seem properly reconnect to the SimpleSocketServer.
      Newly created log messages of a few of the webapps do not show up on the SimpleSocketServer side at all any more.

      After restart of the Tomcat with all the webapps, all new log entries are transmitted properly again to the SimpleSocketServer.

      Fixing this issue would really helps me as I do not have to restart all the Tomcats delivering there log messages to the single SimpleSocketServer after restarting it.

      Thanx in advance for your help and have a good weekend,
      Rick

      Attachments

        Activity

          People

            logback-dev Logback dev list
            rick Rick Janda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: