From 31acde62adef235db52a244a0b6f96c68ec968e6 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 31 Aug 2011 07:59:00 -0700 Subject: 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 Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/usingpoky.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'documentation/poky-ref-manual/usingpoky.xml') 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 bb.debug. Bash: For Bash functions, the same set of loglevels exist and are accessed with a similar syntax: - bb.fatal, bb.error, - bb.warn, bb.note, - bb.plain, and bb.debug. + bbfatal, bberror, + bbwarn, bbnote, + bbplain, and bbdebug. - For guidance on echo how logging is handled + For guidance on how logging is handled in both Python and Bash recipes, see the logging.bbclass file in the meta/classes directory of the Yocto Project files. @@ -407,7 +407,7 @@ - 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: @@ -439,7 +439,7 @@ - Following is sample code from a recipe written in Bash. + Following is an example written in Bash. The code logs the progress of the do_my_function function. 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" } -- cgit v1.2.3-54-g00ecf