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" }