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

logevent can not be written into file when config file is loading

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 1.2.3
    • logback-core
    • slf4j-api-1.7.29

      logback-core-1.2.3

      logback-classic-1.2.3

    Description

      first,use jdb command to start the log program

      then set some breakpoints as follows:

      stop at ch.qos.logback.core.spi.AppenderAttachableImpl:50

      stop at ch.qos.logback.core.spi.AppenderAttachableImpl:51

      stop at ch.qos.logback.core.joran.spi.ConfigurationWatchList:83

      stop at ch.qos.logback.core.spi.AppenderAttachableImpl:109

       

      run

      -----------------------------------------------

      hit breakpoint ch.qos.logback.core.spi.AppenderAttachableImpl:50

      find main thread id,  suspend 【main thread id】, execute cont command

       

       

      hit breakpoint  ch.qos.logback.core.joran.spi.ConfigurationWatchList:83

      now ,let us change our config file ,save it, 

      go back to debug tool interface,execute cont command

       

      hit breakpoint ch.qos.logback.core.spi.AppenderAttachableImpl:109

      execute next command, appenderList will be cleared, suspend current thread id,

      and  resume main thread,   then let us execute cont command

       

      hit breakpoint  ch.qos.logback.core.spi.AppenderAttachableImpl:51

      step debug from here, u can find something as follows:

      Attachments

        Activity

          People

            logback-dev Logback dev list
            lzqdename liuzhiqiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: