Discussion:
Color Output of stack traces?
Dave King
2013-06-04 23:25:58 UTC
Permalink
Just wondering how hard it would be to add a filter that would color
stack traces such that code that matched some regex like ~ /ideajoy/
would stand out. We get big stack traces in groovy/gradle land and
I'd love to have my error lines jump out at me.

Has anyone done this? Should I have posted to Gradle Dev?

- Peace
Dave
David Millar
2013-06-04 23:45:38 UTC
Permalink
My intuition tells me that it would not be difficult on linux/posix
systems, but that it would be difficult, at best, for a platform agnostic
solution (windows), unless the environment is PowerShell or Cygwin. e.g.:
thor and capistrano seem to do this well

This would be a valuable feature for me as well.

- Dave
Post by Dave King
Just wondering how hard it would be to add a filter that would color
stack traces such that code that matched some regex like ~ /ideajoy/
would stand out. We get big stack traces in groovy/gradle land and
I'd love to have my error lines jump out at me.
Has anyone done this? Should I have posted to Gradle Dev?
- Peace
Dave
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Adam Murdoch
2013-06-05 01:23:40 UTC
Permalink
Post by Dave King
Just wondering how hard it would be to add a filter that would color
stack traces such that code that matched some regex like ~ /ideajoy/
would stand out. We get big stack traces in groovy/gradle land and
I'd love to have my error lines jump out at me.
Do you mean adding something to Gradle to do this, for the stack traces that are logged by Gradle?


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Join us at the Gradle Summit 2013, June 13th and 14th in Santa Clara, CA: http://www.gradlesummit.com
Dave King
2013-06-06 20:10:37 UTC
Permalink
Adam, yes that's what I'm thinking. Some filter that can be applied
from gradle to stackraces generated from a javaexec call for
instances.


On Tue, Jun 4, 2013 at 7:23 PM, Adam Murdoch
Post by Dave King
Just wondering how hard it would be to add a filter that would color
stack traces such that code that matched some regex like ~ /ideajoy/
would stand out. We get big stack traces in groovy/gradle land and
I'd love to have my error lines jump out at me.
Do you mean adding something to Gradle to do this, for the stack traces that
are logged by Gradle?
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
http://www.gradlesummit.com
Continue reading on narkive:
Loading...