diff options
author | 2011-08-31 07:59:00 -0700 | |
---|---|---|
committer | 2011-09-02 23:38:50 +0100 | |
commit | 31acde62adef235db52a244a0b6f96c68ec968e6 (patch) | |
tree | d37de1c2cf82c689e291b39e9a0ec4bbac96fd82 /documentation | |
parent | 0d6dc5c2c0fc0ef6be102933b8b34d067c2ffc23 (diff) | |
download | openembedded-core-contrib-31acde62adef235db52a244a0b6f96c68ec968e6.tar.gz |
documentation/poky-ref-manual/usingpoky.xml: Edits per Darren Hart
Darren provided me with some feedback on the logging mechanism
section for both Python and Bash.
(From yocto-docs rev: 7dddadf8caba01d3ef1046be52a1435eeaed60a3)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/poky-ref-manual/usingpoky.xml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/documentation/poky-ref-manual/usingpoky.xml b/documentation/poky-ref-manual/usingpoky.xml index 97fb558432..fa94b1d604 100644 --- a/documentation/poky-ref-manual/usingpoky.xml +++ b/documentation/poky-ref-manual/usingpoky.xml @@ -384,14 +384,14 @@ and <filename>bb.debug</filename>.</para></listitem> <listitem><para><emphasis>Bash:</emphasis> For Bash functions, the same set of loglevels exist and are accessed with a similar syntax: - <filename>bb.fatal</filename>, <filename>bb.error</filename>, - <filename>bb.warn</filename>, <filename>bb.note</filename>, - <filename>bb.plain</filename>, and <filename>bb.debug</filename>.</para></listitem> + <filename>bbfatal</filename>, <filename>bberror</filename>, + <filename>bbwarn</filename>, <filename>bbnote</filename>, + <filename>bbplain</filename>, and <filename>bbdebug</filename>.</para></listitem> </itemizedlist> </para> <para> - For guidance on <filename>echo</filename> how logging is handled + For guidance on how logging is handled in both Python and Bash recipes, see the <filename>logging.bbclass</filename> file in the <filename>meta/classes</filename> directory of the Yocto Project files. @@ -407,7 +407,7 @@ </para> <para> - Following is sample code from a recipe written in Python. + Following is an example written in Python. The code handles logging for a function that determines the number of tasks needed to be run: <literallayout class='monospaced'> @@ -439,7 +439,7 @@ </para> <para> - Following is sample code from a recipe written in Bash. + Following is an example written in Bash. The code logs the progress of the <filename>do_my_function</filename> function. <literallayout class='monospaced'> do_my_function() { @@ -449,15 +449,15 @@ fi bbdebug 2 "Got to point xyz" if [ warning_trigger ]; then - warn "Detected warning_trigger, this might cause a problem later." + bbwarn "Detected warning_trigger, this might cause a problem later." fi if [ recoverable_error ]; then - error "Hit recoverable_error, correcting" + bberror "Hit recoverable_error, correcting" fi if [ fatal_error ]; then - fatal "fatal_error detected" + bbfatal "fatal_error detected" fi - debug 2 "Completed do_my_function" + bbdebug 2 "Completed do_my_function" } </literallayout> </para> |