[slf4j-dev] [JIRA] (SLF4J-395) add a configuration for System.out/err cache

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Feb 27 15:15:00 CET 2017


     [ https://jira.qos.ch/browse/SLF4J-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gülcü resolved SLF4J-395.
------------------------------
    Resolution: Fixed

[~hboutemy]

Fixed in commit [4a8c16635c|https://github.com/qos-ch/slf4j/commit/4a8c16635c].

Many of the configuration parameters moved to {{SimpleLoggerConfiguration}} class. However, this change should be transparent to users. If not, ping me.

Please verify and close.

> add a configuration for System.out/err cache
> --------------------------------------------
>
>                 Key: SLF4J-395
>                 URL: https://jira.qos.ch/browse/SLF4J-395
>             Project: SLF4J
>          Issue Type: Improvement
>          Components: slf4j-simple
>    Affects Versions: 1.7.24
>         Environment: Apache Maven
>            Reporter: Hervé Boutemy
>            Assignee: Ceki Gülcü
>             Fix For: 1.7.25
>
>
> 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



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list