generic-poky/bitbake/lib/bb
Paul Eggleton c61b525e91 bitbake: lib/bb/build: enable access to logger within tasks
In certain circumstances it can be useful to get access to BitBake's
logger within a task; the main example is in OpenEmbedded's image
construction code where we want to be able to check the log file for
errors and warnings, but we don't want to see any errors or warnings
that were emitted through the logger; so we need a way to exclude those.
In order to do this, pass the logger object into the task via a
BB_TASK_LOGGER variable, and add a logging handler class to bb.utils
that can be added to it in order to keep a list of warnings/errors that
have been emitted.

(Bitbake rev: f1cd6fab604f14d8686b1d783cbfe012d923ee42)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-14 12:25:07 +00:00
..
fetch2 bitbake: fetch2: obey BB_ALLOWED_NETWORKS when checking network access 2016-11-30 15:48:10 +00:00
parse bitbake: ast: remove BBVERSIONS support 2016-11-30 15:48:10 +00:00
pysh bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
server bitbake: server/process: don't change UI process signal handler on terminate 2016-12-14 12:25:07 +00:00
tests bitbake: data_smart: support serialisation 2016-12-14 12:25:07 +00:00
ui bitbake: knotty: fix --observe-only option 2016-12-14 12:25:06 +00:00
COW.py bitbake: COW.py: fix sample codes 2016-11-23 10:59:56 +00:00
__init__.py bitbake: bitbake: Update version to 1.32.0 2016-10-11 08:47:17 +01:00
build.py bitbake: lib/bb/build: enable access to logger within tasks 2016-12-14 12:25:07 +00:00
cache.py bitbake: bitbake: remove True option to getVarFlag calls 2016-11-30 15:48:09 +00:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
checksum.py bitbake: lib/bb/checksum: avoid exception on broken symlinks 2016-07-29 09:53:32 +01:00
codeparser.py bitbake: codeparser.py: support deeply nested tokens 2016-11-30 15:48:10 +00:00
command.py bitbake: runqueue: enable setVariable command to affect task execution 2016-12-14 12:25:07 +00:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: runqueue: enable setVariable command to affect task execution 2016-12-14 12:25:07 +00:00
cookerdata.py bitbake: command: provide a means to shut down from the client in memres mode 2016-12-14 12:25:07 +00:00
daemonize.py bitbake: daemonize/prserv/tests/fetch: Convert file() -> open() 2016-05-13 13:41:32 +01:00
data.py bitbake: bitbake: remove True option to getVarFlag calls 2016-11-30 15:48:09 +00:00
data_smart.py bitbake: data_smart: support serialisation 2016-12-14 12:25:07 +00:00
event.py bitbake: monitordisk: add event 2016-12-07 10:42:22 +00:00
exceptions.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
main.py bitbake: tinfoil: rewrite as a wrapper around the UI 2016-12-14 12:25:07 +00:00
methodpool.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
monitordisk.py bitbake: monitordisk: add event 2016-12-07 10:42:22 +00:00
msg.py bitbake: knotty: add quiet output mode 2016-07-08 09:57:27 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: bitbake: remove True option to getVar calls 2016-11-30 15:48:09 +00:00
process.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
progress.py bitbake: lib/bb/progress: avoid possibility of start event being reported twice 2016-07-26 08:10:35 +01:00
providers.py bitbake: bitbake: remove True option to getVar calls 2016-11-30 15:48:09 +00:00
remotedata.py bitbake: remotedata: enable transporting datastore from the client to the server 2016-12-14 12:25:07 +00:00
runqueue.py bitbake: runqueue: enable setVariable command to affect task execution 2016-12-14 12:25:07 +00:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: siggen: add means of ignoring basehash mismatch 2016-12-14 12:25:07 +00:00
taskdata.py bitbake: taskdata.py: improve handling of depends/rdepends 2016-11-23 10:59:56 +00:00
tinfoil.py bitbake: cooker: allow buildFile warning to be hidden programmatically 2016-12-14 12:25:07 +00:00
utils.py bitbake: lib/bb/build: enable access to logger within tasks 2016-12-14 12:25:07 +00:00