coloring juju logs a bit
Marco Ceppi
marco.ceppi at canonical.com
Sun May 3 17:47:23 UTC 2015
ccze also works really well for colouring log output and is one less tool
we have to build/maintain. Getting some fixes to it so it better colors
juju logs would be a win I think. FWIW, I and others in eco have been using
it for a while on a variety of application outputs including juju
Marco
On Tue, Apr 28, 2015 at 4:30 PM, Horacio Duran <horacio.duran at canonical.com>
wrote:
> 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
>>
>
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150503/31458194/attachment.html>
More information about the Juju-dev
mailing list