sbt / sbt-remote-control

Create and manage sbt process using unicorns and forks
Other
74 stars 14 forks source link

Add an option to not receive the color escape codes in the log events #54

Open skyluc opened 10 years ago

skyluc commented 10 years ago

Right now in scala-ide/sbt-integration, we are receiving standard output event like this:

[info] Compiling 1 Scala source to /home/luc/tmp/dummy-sbt-0.13/target/scala-2.10/classes...

We have no real use for the escape characters.

May be the solution could be to disable the terminal color support at the sbt-server level, and adding it to the command line client.

jsuereth commented 10 years ago

We do have code to do this. Is this the StdOut messages or the LogEvent message? If it's the former, eventually I'll clean up logged statements not to hit stdout. If it's the latter, I'm cool cleaning that immediately.

skyluc commented 10 years ago

It is seem to be coming from a LogEvent(LogStdOut(msg)) event.

jsuereth commented 10 years ago

Right. StdOut is unfiltered right now, but I hope to remove LOG messages from StdOut since they are duplicated by LogEvent(LogInfo(..)) where we can grab color vlaues from

On Wed, Jan 15, 2014 at 8:39 AM, Luc Bourlier notifications@github.comwrote:

It is seem to be coming from a LogEvent(LogStdOut(msg)) event.

— Reply to this email directly or view it on GitHubhttps://github.com/sbt/sbt-remote-control/issues/54#issuecomment-32361765 .

skyluc commented 10 years ago

Oh, yes, it looks like duplicated data from info events. Right now we are logging all events, we will have to filter them better :smiley:.