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

1.3.0-alpha4 LoggerContext's ExecutorService no longer executes

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0-alpha4
    • Fix Version/s: None
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      Windows 10, Java 8, Running in JUnit tests in IntelliJ

       

      Description

      LoggerContext provides an ExecutorService. I am using this to start a TCP appender similar to the one provided by logback.

      Context context = new LoggerContext();ExecutorService ses = context.getExecutorService();ses.submit(() -> System.out.println("ScheduledExecutorService running"));

      Would print the text.

      Running with 1.3.0-alpha4 version, the lambda is no longer executed

       

      N.B.  context.getExecutorService() has been deprecated the same applies to context.getScheduledExecutorService()



        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              teknopaul paul hinds
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: