[OE-core] [PATCH 1/3] oe.scriptutils: enable color in a more flexible way

Christopher Larson chris_larson at mentor.com
Fri Sep 25 20:37:03 UTC 2015


On Wed, Sep 23, 2015 at 11:24 AM, Christopher Larson <kergoth at gmail.com>
wrote:

> From: Christopher Larson <chris_larson at mentor.com>
>
> Rather than recreating handlers and forcing them, iterate over the handlers
> and enable color on ones we can handle. This makes it easier to handle
> color
> properly when we introduce the bb.msg default log filters.
>
> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
>

Hmm, might be worth making this even more generic and moving it to bb.msg.
If one was to run this against a logger which isn't configured to use
BBLogFormatter, this would do nothing. It should probably raise an
exception if that occurs, or automatically replace the stock formatter
instance with a BBLogFormatter instance using the same format string.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150925/db2e584c/attachment-0002.html>


More information about the Openembedded-core mailing list