coloring juju logs a bit

Marco Ceppi marco.ceppi at canonical.com
Sun May 3 18:11:20 UTC 2015


it just works OOTB for me

On Sun, May 3, 2015 at 1:54 PM, Horacio Duran <horacio.duran at canonical.com>
wrote:

> Looks really nice, if I have to maintain something less I am happy. Is
> there any conf required that you can share with us?
>
>
> On Sunday, May 3, 2015, Marco Ceppi <marco.ceppi at canonical.com> wrote:
>
>> 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/4ca684d3/attachment.html>


More information about the Juju-dev mailing list