For fun: https://ibin.co/2mBev3ns9FJz.png
Gary On Wed, Jun 15, 2016 at 10:50 PM, Gary Gregory <[email protected]> wrote: > Hi All, > > See color messages in Maven 3.4.0-SNAPSHOT made me think of the following. > > Right now, with Jansi on the CP, I can say: > > import static org.fusesource.jansi.Ansi.*; > import static org.fusesource.jansi.Ansi.Color.*; > ... > logger.info(ansi().fg(RED).a("Hello").fg(CYAN).a(" World").reset()); > > and the right thing happens on the console. > > If I also have a file appender, I get the escape codes in the file, which > I do not think most people would want. > > The question is, how can we make it simple for users to have their cake > and eat it too? > > With a special Message implementation? > > Thoughts? > > Thank you, > Gary > -- > E-Mail: [email protected] | [email protected] > Java Persistence with Hibernate, Second Edition > <http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
