coloring juju logs a bit

Horacio Duran horacio.duran at canonical.com
Tue Apr 28 20:30:37 UTC 2015


After an interesting discussion with one of my peers where things like
"bash is the devil" where said, I decided to go the go way, I upgraded a
bit a tool from our own Nate Finch to help filter and color the logs. The
coloring is a bit crude but I have found it to be a quite useful little
tool.
here is the url https://github.com/natefinch/nolog
and here is a sample of output: http://imgur.com/qRuaROh

On Fri, Mar 6, 2015 at 2:31 PM, Horacio Duran <horacio.duran at canonical.com>
wrote:

> So, for those like me, that usually end up hunting for what broke your
> tests and find themselves swimming in a sea of log output, I have added a
> bit of setup to my supercat to get some useful coloring.
> I most likely will be doing this in a more serious and less hacky (and
> more juju dev oriented) way bu in the mean time:
> create .spcrc/spcrc-juju-tests
> with the contents of: http://pastebin.ubuntu.com/10551462/
> and to get some coloring (bear in mind that if everything went well you
> will get absolutely nothing colored)
> go test github.com/juju/juju/... 2>&1 | spc -w -t juju-tests
>
> the output is something like this
> http://imgur.com/TErS04p
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150428/d98a76eb/attachment.html>


More information about the Juju-dev mailing list