diff options
author | Timo Mueller <timo.mueller@bmw-carit.de> | 2013-02-08 09:16:33 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-14 17:25:35 +0000 |
commit | a41a805500cab281fba15bd8e5d3e60b88d0d4be (patch) | |
tree | 9973678912b57cfdef5b1f9676794a556b4d8966 /documentation/ref-manual/eclipse/html/poky-ref-manual/logging-with-python.html | |
parent | 768152340898cbb9faed6e8865a4e35c69833230 (diff) | |
download | poky-a41a805500cab281fba15bd8e5d3e60b88d0d4be.tar.gz |
documentation: Part 1 of 2 updates to integrating docs to Eclipse help.
Hi,
the generation of eclipse help files has been merged from the timo
branch to the master. Since the creation of the timo branch there have
been some changes to the master branch (e.g. new documentation,
renamed documentation).
This patch set does some cleanup for the renamed documentation and
adds eclipse help generation support to the new documentation.
01: Removes the 'the' from the document titles
02..04: Cleanup obsolete artifacts resulting from the merge
05..08: Add eclipse help generation for ref-manual
09..13: Add eclipse help generation for kernel-dev
14..18: Add eclipse help generation for profile-manual
Best regards,
Timo
This patch set originally contained 18 patches. I (Scott Rifenbark)
had to push these changes as two parts. This is the first part.
It does not include creation of the three cusomization files.
(From yocto-docs rev: 9b1889f6e31ee70dae704fa08763fb9196616dad)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/eclipse/html/poky-ref-manual/logging-with-python.html')
-rw-r--r-- | documentation/ref-manual/eclipse/html/poky-ref-manual/logging-with-python.html | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/documentation/ref-manual/eclipse/html/poky-ref-manual/logging-with-python.html b/documentation/ref-manual/eclipse/html/poky-ref-manual/logging-with-python.html deleted file mode 100644 index e57b647148..0000000000 --- a/documentation/ref-manual/eclipse/html/poky-ref-manual/logging-with-python.html +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | ||
4 | <title>2.3.7.1. Logging With Python</title> | ||
5 | <link rel="stylesheet" type="text/css" href="../book.css"> | ||
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> | ||
7 | <link rel="home" href="index.html" title="The Yocto Project Reference Manual"> | ||
8 | <link rel="up" href="recipe-logging-mechanisms.html" title="2.3.7. Recipe Logging Mechanisms"> | ||
9 | <link rel="prev" href="recipe-logging-mechanisms.html" title="2.3.7. Recipe Logging Mechanisms"> | ||
10 | <link rel="next" href="logging-with-bash.html" title="2.3.7.2. Logging With Bash"> | ||
11 | </head> | ||
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" title="2.3.7.1. Logging With Python"> | ||
13 | <div class="titlepage"><div><div><h4 class="title"> | ||
14 | <a name="logging-with-python"></a>2.3.7.1. Logging With Python</h4></div></div></div> | ||
15 | <p> | ||
16 | When creating recipes using Python and inserting code that handles build logs | ||
17 | keep in mind the goal is to have informative logs while keeping the console as | ||
18 | "silent" as possible. | ||
19 | Also, if you want status messages in the log use the "debug" loglevel. | ||
20 | </p> | ||
21 | <p> | ||
22 | Following is an example written in Python. | ||
23 | The code handles logging for a function that determines the number of tasks | ||
24 | needed to be run: | ||
25 | </p> | ||
26 | <pre class="literallayout"> | ||
27 | python do_listtasks() { | ||
28 | bb.debug(2, "Starting to figure out the task list") | ||
29 | if noteworthy_condition: | ||
30 | bb.note("There are 47 tasks to run") | ||
31 | bb.debug(2, "Got to point xyz") | ||
32 | if warning_trigger: | ||
33 | bb.warn("Detected warning_trigger, this might be a problem later.") | ||
34 | if recoverable_error: | ||
35 | bb.error("Hit recoverable_error, you really need to fix this!") | ||
36 | if fatal_error: | ||
37 | bb.fatal("fatal_error detected, unable to print the task list") | ||
38 | bb.plain("The tasks present are abc") | ||
39 | bb.debug(2, "Finished figuring out the tasklist") | ||
40 | } | ||
41 | </pre> | ||
42 | <p> | ||
43 | </p> | ||
44 | </div></body> | ||
45 | </html> | ||