adding some rendering code like supported by Gossip, and eventually adding the rendering feature to slf4j-simple seemed sufficiently easy to give it a try: done and was as easy as expected
Now, adding every slf4j-simple feature to Gossip require more work (it's not simply about rendering: need to really dig into code), and is not guaranteed to give smooth experience for everybody: the two missing features that were reported clearly are perhaps the first two of a long list. Jason told that these updates should be feasible, but seemed nobody really tried. This option of keeping usual slf4j-simple with a little patch seems currently not foolish Regards, Hervé Le lundi 17 octobre 2016 06:49:21 Jason van Zyl a écrit : > So your approach was to fork some code, instead of trying to fix Gossip? I > haven’t been paying much attention just trying to understand why you would > fork instead of working with Jason Dillon to get that added? Did he not > respond or you couldn’t make a PR? > > Jason > > > On Oct 17, 2016, at 1:11 AM, Hervé BOUTEMY <herve.bout...@free.fr> wrote: > > > > Hi Mirko, > > > > short answer: yes > > > > more precise answer: > > Gossip slf4j provider does not have color feature but has extensible > > Renderer interface which permits to inject Maven colorized renderer [1] > > with one configuration line [2] > > > > In maven-slf4j-simple, I copied the same Maven colorized renderer code [3] > > and injected it in slf4j simple through a Groovy script to patch slf4j > > simple source code [4]: not as straightforward than one fonciguration > > line, but same effect with clean separation of Maven-specific extension > > code to support colorized output with Maven styles > > > > Regards, > > > > Hervé > > > > [1] > > https://github.com/apache/maven/blob/master/maven-embedder/src/main/java/ > > org/apache/maven/cli/logging/impl/gossip/ColorRenderer.java > > > > [2] > > https://github.com/apache/maven/blob/master/maven-embedder/src/main/resou > > rces/META-INF/com.planet57.gossip/config.properties#L29 > > > > [3] > > https://github.com/apache/maven/blob/MNG-6093/maven-slf4j-provider/src/ma > > in/java/org/slf4j/impl/MavenSimpleLogger.java > > > > [4] > > https://github.com/apache/maven/blob/MNG-6093/maven-slf4j-provider/src/ma > > in/script/patch-slf4j-simple.groovy> > > Le lundi 17 octobre 2016 07:00:50 Mirko Friedenhagen a écrit : > >> Hello Hervé, > >> > >> I would like a simple approach here. If I understand it correctly, gossip > >> was chosen because of its color capability. If we could have this without > >> switching the log provider it would be a good thing IMO. Gossip seems to > >> be > >> unconfigurable by means of system properties, which is a pity. > >> > >> Regards > >> Mirko > >> > >>> Jason Dillon started the Maven output color work by providing us a > >>> Gossip > >>> slf4j provider renderer adapted to Maven context: thanks Jason > >>> > >>> Then current master uses Gossip slf4j provider by default with this > >>> customization. > >>> > >>> Given there were feedback from people finding the change disturbing vs > >>> usual > >>> slf4j simple provider (some are just about changing habits, some are > >>> about > >>> missing features like logging configuration with CLI and relative > >>> timestamp), > >>> I tried another approach: patch slf4j simple provider to add > >>> Maven-specific > >>> rendering features. > >>> > >>> The result is available on MNG-6093 branch with maven-slf4j-provider > >>> module > >>> addition [1] > >>> > >>> I didn't really try to add features or extensions to slf4j Gossip. > >>> > >>> > >>> What is the best option for Maven: try to improve slf4j Gossip or use > >>> this > >>> slf4j simple patched version? > >>> > >>> Regards, > >>> > >>> Hervé > >>> > >>> [1] https://github.com/apache/maven/tree/MNG-6093/maven-slf4j-provider > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > >>> For additional commands, e-mail: dev-h...@maven.apache.org > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > > For additional commands, e-mail: dev-h...@maven.apache.org > > Thanks, > > Jason > > ---------------------------------------------------------- > Jason van Zyl > Founder, Takari and Apache Maven > http://twitter.com/jvanzyl > http://twitter.com/takari_io > --------------------------------------------------------- > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org