generic-poky/bitbake/bin
Richard Purdie 7ee93b206a bitbake/logging: Overhaul internal logging process
At the moment it bugs me a lot that we only have one effective logging
level for bitbake, despite the logging module having provision to do
more advanced things. This patch:

* Changes the core log level to the lowest level we have messages of
  (DEBUG-2) so messages always flow through the core logger
* Allows build.py's task logging code to log all the output regardless
  of what output is on the console and sets this so log files now
  always contain debug level messages even if these don't appear
  on the console
* Moves the verbose/debug/debug-domains code to be a UI side setting
* Adds a filter to the UI to only print the user requested output.

The result is more complete logfiles on disk but the usual output to the
console.

There are some behaviour changes intentionally made by this patch:

a) the -v option now controls whether output is tee'd to the console.

Ultimately, we likely want to output a message to the user about where the
log file is and avoid placing output directly onto the console for every
executing task.

b) The functions get_debug_levels, the debug_levels variable, the
set_debug_levels, the set_verbosity and set_debug_domains functions are
removed from bb.msg.

c) The "logging" init function changes format.

d) All messages get fired to all handlers all the time leading to an
increase in inter-process traffic. This could likely be hacked around
short term with a function for a UI to only request events greater than
level X. Longer term, having masks for event handlers would be better.

e) logger.getEffectiveLevel() is no longer a reliable guide to what
will/won't get logged so for now we look at the default log levels instead.

[YOCTO #304]

(Bitbake rev: 45aad2f9647df14bcfa5e755b57e1ddab377939a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-15 09:14:28 +01:00
..
bitbake bitbake/logging: Overhaul internal logging process 2011-08-15 09:14:28 +01:00
bitbake-diffsigs bitbake/bitbake-sigdiff: Extend to handle dumping single state siginfo files 2010-09-30 18:02:35 +01:00
bitbake-layers bitbake-layers: adapt to cooker change for saved environment 2011-07-26 13:46:32 +01:00
bitbake-prserv Add PR service deamon to bitbake 2011-05-27 17:55:49 +01:00
bitbake-runtask bitbake/bitbake-runtask: Since the parent has set the environment up cleanly we don't need to filter this ourselves anymore 2010-12-10 12:40:23 +00:00
bitdoc bitbake/logging: Overhaul internal logging process 2011-08-15 09:14:28 +01:00