Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-395

add a configuration for System.out/err cache

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.25
    • 1.7.24
    • slf4j-simple
    • None
    • Apache Maven

    Description

      in SLF4J-389, having slf4j simple provider caching System.out and System.err was though as a bug, annoying some people in their integration where they prefer not caching and benefitting from code changing System.out/err value to change slf4j simple output

      In Maven, this cache is more seen as a feature, that prevents changing Maven output location in a plugin that would play with System.out/err for integrating some code: Maven is an open world, I didn't find such a plugin, but it may exist and the new not-caching slf4j simple would more been seen as a bug for us.

       

      In fact, caching is not per se a bug: it's a feature that can be useful to disable (or the oposite, to enable when you want it)

      Please add a configuration to enable/disable caching: I don't know if caching should be enabled by default or not, it depends on what you consider the default behaviour of slf4j simple provider for years

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            hboutemy Hervé Boutemy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: