| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>Logging</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> |
| 7 | <link rel="home" href="index.html" title="Redland RDF Library Manual"> |
| 8 | <link rel="up" href="reference-manual.html" title="Part II. Reference Manual"> |
| 9 | <link rel="prev" href="redland-list.html" title="List"> |
| 10 | <link rel="next" href="redland-model.html" title="RDF Graph (librdf_model)"> |
| 11 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
| 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 16 | <tr valign="middle"> |
| 17 | <td><a accesskey="p" href="redland-list.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 18 | <td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 19 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 20 | <th width="100%" align="center">Redland RDF Library Manual</th> |
| 21 | <td><a accesskey="n" href="redland-model.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 22 | </tr> |
| 23 | <tr><td colspan="5" class="shortcuts"> |
| 24 | <a href="#redland-log.synopsis" class="shortcut">Top</a> |
| 25 | | |
| 26 | <a href="#redland-log.description" class="shortcut">Description</a> |
| 27 | </td></tr> |
| 28 | </table> |
| 29 | <div class="refentry"> |
| 30 | <a name="redland-log"></a><div class="titlepage"></div> |
| 31 | <div class="refnamediv"><table width="100%"><tr> |
| 32 | <td valign="top"> |
| 33 | <h2><span class="refentrytitle"><a name="redland-log.top_of_page"></a>Logging</span></h2> |
| 34 | <p>Logging — Message and error logging.</p> |
| 35 | </td> |
| 36 | <td valign="top" align="right"></td> |
| 37 | </tr></table></div> |
| 38 | <div class="refsynopsisdiv"> |
| 39 | <a name="redland-log.synopsis"></a><h2>Synopsis</h2> |
| 40 | <pre class="synopsis"><span class="returnvalue">int</span> (<a class="link" href="redland-log.html#librdf-log-level-func" title="librdf_log_level_func ()">*librdf_log_level_func</a>) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 41 | <em class="parameter"><code>const <span class="type">char</span> *message</code></em>, |
| 42 | <em class="parameter"><code><span class="type">va_list</span> arguments</code></em>); |
| 43 | <span class="returnvalue">int</span> (<a class="link" href="redland-log.html#librdf-log-func" title="librdf_log_func ()">*librdf_log_func</a>) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 44 | <em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>); |
| 45 | enum <a class="link" href="redland-log.html#librdf-log-level" title="enum librdf_log_level">librdf_log_level</a>; |
| 46 | enum <a class="link" href="redland-log.html#librdf-log-facility" title="enum librdf_log_facility">librdf_log_facility</a>; |
| 47 | <span class="returnvalue">int</span> <a class="link" href="redland-log.html#librdf-log-message-code" title="librdf_log_message_code ()">librdf_log_message_code</a> (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>); |
| 48 | <a class="link" href="redland-log.html#librdf-log-level" title="enum librdf_log_level"><span class="returnvalue">librdf_log_level</span></a> <a class="link" href="redland-log.html#librdf-log-message-level" title="librdf_log_message_level ()">librdf_log_message_level</a> (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>); |
| 49 | <a class="link" href="redland-log.html#librdf-log-facility" title="enum librdf_log_facility"><span class="returnvalue">librdf_log_facility</span></a> <a class="link" href="redland-log.html#librdf-log-message-facility" title="librdf_log_message_facility ()">librdf_log_message_facility</a> (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>); |
| 50 | const <span class="returnvalue">char</span> * <a class="link" href="redland-log.html#librdf-log-message-message" title="librdf_log_message_message ()">librdf_log_message_message</a> (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>); |
| 51 | <span class="returnvalue">raptor_locator</span> * <a class="link" href="redland-log.html#librdf-log-message-locator" title="librdf_log_message_locator ()">librdf_log_message_locator</a> (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>); |
| 52 | </pre> |
| 53 | </div> |
| 54 | <div class="refsect1"> |
| 55 | <a name="redland-log.description"></a><h2>Description</h2> |
| 56 | <p> |
| 57 | Provides structured access to debug, information, warning and error |
| 58 | messages from the libraries. Structured information is most often |
| 59 | used from errors such as parsing where file or URI and line numbers |
| 60 | can be returned via a <span class="type">raptor_locator</span> object pointer found by |
| 61 | <a class="link" href="redland-log.html#librdf-log-message-locator" title="librdf_log_message_locator ()"><code class="function">librdf_log_message_locator()</code></a> on the <span class="type">librdf_log_message</span>. |
| 62 | </p> |
| 63 | </div> |
| 64 | <div class="refsect1"> |
| 65 | <a name="redland-log.details"></a><h2>Details</h2> |
| 66 | <div class="refsect2"> |
| 67 | <a name="librdf-log-level-func"></a><h3>librdf_log_level_func ()</h3> |
| 68 | <pre class="programlisting"><span class="returnvalue">int</span> (*librdf_log_level_func) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 69 | <em class="parameter"><code>const <span class="type">char</span> *message</code></em>, |
| 70 | <em class="parameter"><code><span class="type">va_list</span> arguments</code></em>);</pre> |
| 71 | <p> |
| 72 | Handler for one log level, for the warning and error levels ONLY. |
| 73 | Used by <a class="link" href="redland-world.html#librdf-world-set-warning" title="librdf_world_set_warning ()"><span class="type">librdf_world_set_warning</span></a> and <a class="link" href="redland-world.html#librdf-world-set-error" title="librdf_world_set_error ()"><span class="type">librdf_world_set_error</span></a>. |
| 74 | </p> |
| 75 | <div class="variablelist"><table border="0"> |
| 76 | <col align="left" valign="top"> |
| 77 | <tbody> |
| 78 | <tr> |
| 79 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 80 | <td>User data pointer</td> |
| 81 | </tr> |
| 82 | <tr> |
| 83 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 84 | <td>Log message.</td> |
| 85 | </tr> |
| 86 | <tr> |
| 87 | <td><p><span class="term"><em class="parameter"><code>arguments</code></em> :</span></p></td> |
| 88 | <td>Message arguments.</td> |
| 89 | </tr> |
| 90 | <tr> |
| 91 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 92 | <td>non-zero to indicate log message has been handled</td> |
| 93 | </tr> |
| 94 | </tbody> |
| 95 | </table></div> |
| 96 | </div> |
| 97 | <hr> |
| 98 | <div class="refsect2"> |
| 99 | <a name="librdf-log-func"></a><h3>librdf_log_func ()</h3> |
| 100 | <pre class="programlisting"><span class="returnvalue">int</span> (*librdf_log_func) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 101 | <em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>);</pre> |
| 102 | <p> |
| 103 | Handler for all log levels. |
| 104 | </p> |
| 105 | <div class="variablelist"><table border="0"> |
| 106 | <col align="left" valign="top"> |
| 107 | <tbody> |
| 108 | <tr> |
| 109 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 110 | <td>User data pointer</td> |
| 111 | </tr> |
| 112 | <tr> |
| 113 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 114 | <td>Log message structure pointer.</td> |
| 115 | </tr> |
| 116 | <tr> |
| 117 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 118 | <td>non-zero to indicate log message has been handled</td> |
| 119 | </tr> |
| 120 | </tbody> |
| 121 | </table></div> |
| 122 | </div> |
| 123 | <hr> |
| 124 | <div class="refsect2"> |
| 125 | <a name="librdf-log-level"></a><h3>enum librdf_log_level</h3> |
| 126 | <pre class="programlisting">typedef enum { |
| 127 | LIBRDF_LOG_NONE = 0, |
| 128 | LIBRDF_LOG_DEBUG, |
| 129 | LIBRDF_LOG_INFO, |
| 130 | LIBRDF_LOG_WARN, |
| 131 | LIBRDF_LOG_ERROR, |
| 132 | LIBRDF_LOG_FATAL, |
| 133 | LIBRDF_LOG_LAST=LIBRDF_LOG_FATAL |
| 134 | } librdf_log_level; |
| 135 | </pre> |
| 136 | <p> |
| 137 | Indicates the level of the log message. |
| 138 | </p> |
| 139 | <div class="variablelist"><table border="0"> |
| 140 | <col align="left" valign="top"> |
| 141 | <tbody> |
| 142 | <tr> |
| 143 | <td><p><a name="LIBRDF-LOG-NONE:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_NONE</code></span></p></td> |
| 144 | <td>No level |
| 145 | </td> |
| 146 | </tr> |
| 147 | <tr> |
| 148 | <td><p><a name="LIBRDF-LOG-DEBUG:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_DEBUG</code></span></p></td> |
| 149 | <td>Debug. |
| 150 | </td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td><p><a name="LIBRDF-LOG-INFO:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_INFO</code></span></p></td> |
| 154 | <td>Information. |
| 155 | </td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <td><p><a name="LIBRDF-LOG-WARN:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_WARN</code></span></p></td> |
| 159 | <td>Warning. |
| 160 | </td> |
| 161 | </tr> |
| 162 | <tr> |
| 163 | <td><p><a name="LIBRDF-LOG-ERROR:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_ERROR</code></span></p></td> |
| 164 | <td>Recoverable error. Program can continue. |
| 165 | </td> |
| 166 | </tr> |
| 167 | <tr> |
| 168 | <td><p><a name="LIBRDF-LOG-FATAL:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_FATAL</code></span></p></td> |
| 169 | <td>Fatal error. Program will abort if this is not caught. |
| 170 | </td> |
| 171 | </tr> |
| 172 | <tr> |
| 173 | <td><p><a name="LIBRDF-LOG-LAST:CAPS"></a><span class="term"><code class="literal">LIBRDF_LOG_LAST</code></span></p></td> |
| 174 | <td>Internal, never returned. |
| 175 | </td> |
| 176 | </tr> |
| 177 | </tbody> |
| 178 | </table></div> |
| 179 | </div> |
| 180 | <hr> |
| 181 | <div class="refsect2"> |
| 182 | <a name="librdf-log-facility"></a><h3>enum librdf_log_facility</h3> |
| 183 | <pre class="programlisting">typedef enum { |
| 184 | LIBRDF_FROM_NONE = 0, |
| 185 | LIBRDF_FROM_CONCEPTS, |
| 186 | LIBRDF_FROM_DIGEST, |
| 187 | LIBRDF_FROM_FILES, |
| 188 | LIBRDF_FROM_HASH, |
| 189 | LIBRDF_FROM_INIT, |
| 190 | LIBRDF_FROM_ITERATOR, |
| 191 | LIBRDF_FROM_LIST, |
| 192 | LIBRDF_FROM_MODEL, |
| 193 | LIBRDF_FROM_NODE, |
| 194 | LIBRDF_FROM_PARSER, |
| 195 | LIBRDF_FROM_QUERY, |
| 196 | LIBRDF_FROM_SERIALIZER, |
| 197 | LIBRDF_FROM_STATEMENT, |
| 198 | LIBRDF_FROM_STORAGE, |
| 199 | LIBRDF_FROM_STREAM, |
| 200 | LIBRDF_FROM_URI, |
| 201 | LIBRDF_FROM_UTF8, |
| 202 | LIBRDF_FROM_MEMORY, |
| 203 | LIBRDF_FROM_RAPTOR, |
| 204 | LIBRDF_FROM_LAST=LIBRDF_FROM_RAPTOR |
| 205 | } librdf_log_facility; |
| 206 | </pre> |
| 207 | <p> |
| 208 | Indicates the part of the system that generated the log message. |
| 209 | </p> |
| 210 | <div class="variablelist"><table border="0"> |
| 211 | <col align="left" valign="top"> |
| 212 | <tbody> |
| 213 | <tr> |
| 214 | <td><p><a name="LIBRDF-FROM-NONE:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_NONE</code></span></p></td> |
| 215 | <td>Associated with no part. |
| 216 | </td> |
| 217 | </tr> |
| 218 | <tr> |
| 219 | <td><p><a name="LIBRDF-FROM-CONCEPTS:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_CONCEPTS</code></span></p></td> |
| 220 | <td>Concepts |
| 221 | </td> |
| 222 | </tr> |
| 223 | <tr> |
| 224 | <td><p><a name="LIBRDF-FROM-DIGEST:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_DIGEST</code></span></p></td> |
| 225 | <td>Digest |
| 226 | </td> |
| 227 | </tr> |
| 228 | <tr> |
| 229 | <td><p><a name="LIBRDF-FROM-FILES:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_FILES</code></span></p></td> |
| 230 | <td>Files |
| 231 | </td> |
| 232 | </tr> |
| 233 | <tr> |
| 234 | <td><p><a name="LIBRDF-FROM-HASH:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_HASH</code></span></p></td> |
| 235 | <td>Hash |
| 236 | </td> |
| 237 | </tr> |
| 238 | <tr> |
| 239 | <td><p><a name="LIBRDF-FROM-INIT:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_INIT</code></span></p></td> |
| 240 | <td>Init |
| 241 | </td> |
| 242 | </tr> |
| 243 | <tr> |
| 244 | <td><p><a name="LIBRDF-FROM-ITERATOR:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_ITERATOR</code></span></p></td> |
| 245 | <td>Iterator |
| 246 | </td> |
| 247 | </tr> |
| 248 | <tr> |
| 249 | <td><p><a name="LIBRDF-FROM-LIST:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_LIST</code></span></p></td> |
| 250 | <td>List |
| 251 | </td> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td><p><a name="LIBRDF-FROM-MODEL:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_MODEL</code></span></p></td> |
| 255 | <td>Model |
| 256 | </td> |
| 257 | </tr> |
| 258 | <tr> |
| 259 | <td><p><a name="LIBRDF-FROM-NODE:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_NODE</code></span></p></td> |
| 260 | <td>Node |
| 261 | </td> |
| 262 | </tr> |
| 263 | <tr> |
| 264 | <td><p><a name="LIBRDF-FROM-PARSER:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_PARSER</code></span></p></td> |
| 265 | <td>Parser |
| 266 | </td> |
| 267 | </tr> |
| 268 | <tr> |
| 269 | <td><p><a name="LIBRDF-FROM-QUERY:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_QUERY</code></span></p></td> |
| 270 | <td>Query |
| 271 | </td> |
| 272 | </tr> |
| 273 | <tr> |
| 274 | <td><p><a name="LIBRDF-FROM-SERIALIZER:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_SERIALIZER</code></span></p></td> |
| 275 | <td>Serializer |
| 276 | </td> |
| 277 | </tr> |
| 278 | <tr> |
| 279 | <td><p><a name="LIBRDF-FROM-STATEMENT:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_STATEMENT</code></span></p></td> |
| 280 | <td>Statement |
| 281 | </td> |
| 282 | </tr> |
| 283 | <tr> |
| 284 | <td><p><a name="LIBRDF-FROM-STORAGE:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_STORAGE</code></span></p></td> |
| 285 | <td>Storage |
| 286 | </td> |
| 287 | </tr> |
| 288 | <tr> |
| 289 | <td><p><a name="LIBRDF-FROM-STREAM:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_STREAM</code></span></p></td> |
| 290 | <td>Stream |
| 291 | </td> |
| 292 | </tr> |
| 293 | <tr> |
| 294 | <td><p><a name="LIBRDF-FROM-URI:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_URI</code></span></p></td> |
| 295 | <td>URI |
| 296 | </td> |
| 297 | </tr> |
| 298 | <tr> |
| 299 | <td><p><a name="LIBRDF-FROM-UTF8:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_UTF8</code></span></p></td> |
| 300 | <td>UTF8 |
| 301 | </td> |
| 302 | </tr> |
| 303 | <tr> |
| 304 | <td><p><a name="LIBRDF-FROM-MEMORY:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_MEMORY</code></span></p></td> |
| 305 | <td>Memory |
| 306 | </td> |
| 307 | </tr> |
| 308 | <tr> |
| 309 | <td><p><a name="LIBRDF-FROM-RAPTOR:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_RAPTOR</code></span></p></td> |
| 310 | <td>Raptor library (parser or serializer; Raptor 2.0.0+). |
| 311 | </td> |
| 312 | </tr> |
| 313 | <tr> |
| 314 | <td><p><a name="LIBRDF-FROM-LAST:CAPS"></a><span class="term"><code class="literal">LIBRDF_FROM_LAST</code></span></p></td> |
| 315 | <td>Internal, never returned. |
| 316 | </td> |
| 317 | </tr> |
| 318 | </tbody> |
| 319 | </table></div> |
| 320 | </div> |
| 321 | <hr> |
| 322 | <div class="refsect2"> |
| 323 | <a name="librdf-log-message-code"></a><h3>librdf_log_message_code ()</h3> |
| 324 | <pre class="programlisting"><span class="returnvalue">int</span> librdf_log_message_code (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>);</pre> |
| 325 | <p> |
| 326 | Retrieve error code from log message. |
| 327 | </p> |
| 328 | <div class="variablelist"><table border="0"> |
| 329 | <col align="left" valign="top"> |
| 330 | <tbody> |
| 331 | <tr> |
| 332 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 333 | <td>log message</td> |
| 334 | </tr> |
| 335 | <tr> |
| 336 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 337 | <td>int error code</td> |
| 338 | </tr> |
| 339 | </tbody> |
| 340 | </table></div> |
| 341 | </div> |
| 342 | <hr> |
| 343 | <div class="refsect2"> |
| 344 | <a name="librdf-log-message-level"></a><h3>librdf_log_message_level ()</h3> |
| 345 | <pre class="programlisting"><a class="link" href="redland-log.html#librdf-log-level" title="enum librdf_log_level"><span class="returnvalue">librdf_log_level</span></a> librdf_log_message_level (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>);</pre> |
| 346 | <p> |
| 347 | Retrieve severity of log message. |
| 348 | </p> |
| 349 | <p> |
| 350 | The log message severity level is defined in rdf_log.h as values |
| 351 | of enum <a class="link" href="redland-log.html#librdf-log-level" title="enum librdf_log_level"><span class="type">librdf_log_level</span></a> |
| 352 | </p> |
| 353 | <div class="variablelist"><table border="0"> |
| 354 | <col align="left" valign="top"> |
| 355 | <tbody> |
| 356 | <tr> |
| 357 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 358 | <td>log message</td> |
| 359 | </tr> |
| 360 | <tr> |
| 361 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 362 | <td>severity level</td> |
| 363 | </tr> |
| 364 | </tbody> |
| 365 | </table></div> |
| 366 | </div> |
| 367 | <hr> |
| 368 | <div class="refsect2"> |
| 369 | <a name="librdf-log-message-facility"></a><h3>librdf_log_message_facility ()</h3> |
| 370 | <pre class="programlisting"><a class="link" href="redland-log.html#librdf-log-facility" title="enum librdf_log_facility"><span class="returnvalue">librdf_log_facility</span></a> librdf_log_message_facility (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>);</pre> |
| 371 | <p> |
| 372 | Retrieve facility that generated the message. |
| 373 | </p> |
| 374 | <p> |
| 375 | The log message facility is defined in rdf_log.h as values |
| 376 | of enum <a class="link" href="redland-log.html#librdf-log-facility" title="enum librdf_log_facility"><span class="type">librdf_log_facility</span></a> |
| 377 | </p> |
| 378 | <div class="variablelist"><table border="0"> |
| 379 | <col align="left" valign="top"> |
| 380 | <tbody> |
| 381 | <tr> |
| 382 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 383 | <td>log message</td> |
| 384 | </tr> |
| 385 | <tr> |
| 386 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 387 | <td>ID of Redland facility that generated the log message.</td> |
| 388 | </tr> |
| 389 | </tbody> |
| 390 | </table></div> |
| 391 | </div> |
| 392 | <hr> |
| 393 | <div class="refsect2"> |
| 394 | <a name="librdf-log-message-message"></a><h3>librdf_log_message_message ()</h3> |
| 395 | <pre class="programlisting">const <span class="returnvalue">char</span> * librdf_log_message_message (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>);</pre> |
| 396 | <p> |
| 397 | Retrieve text message from log entry. |
| 398 | </p> |
| 399 | <p> |
| 400 | The string returned is shared and must be copied by the caller |
| 401 | if required to be retained. |
| 402 | </p> |
| 403 | <div class="variablelist"><table border="0"> |
| 404 | <col align="left" valign="top"> |
| 405 | <tbody> |
| 406 | <tr> |
| 407 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 408 | <td>log message</td> |
| 409 | </tr> |
| 410 | <tr> |
| 411 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 412 | <td>shared pointer to the log message string</td> |
| 413 | </tr> |
| 414 | </tbody> |
| 415 | </table></div> |
| 416 | </div> |
| 417 | <hr> |
| 418 | <div class="refsect2"> |
| 419 | <a name="librdf-log-message-locator"></a><h3>librdf_log_message_locator ()</h3> |
| 420 | <pre class="programlisting"><span class="returnvalue">raptor_locator</span> * librdf_log_message_locator (<em class="parameter"><code><span class="type">librdf_log_message</span> *message</code></em>);</pre> |
| 421 | <p> |
| 422 | Retrieve locator of log entry. |
| 423 | </p> |
| 424 | <div class="variablelist"><table border="0"> |
| 425 | <col align="left" valign="top"> |
| 426 | <tbody> |
| 427 | <tr> |
| 428 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 429 | <td>log message</td> |
| 430 | </tr> |
| 431 | <tr> |
| 432 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 433 | <td>pointer to an appropriate raptor_locator* or NULL if not available</td> |
| 434 | </tr> |
| 435 | </tbody> |
| 436 | </table></div> |
| 437 | </div> |
| 438 | </div> |
| 439 | </div> |
| 440 | <div class="footer"> |
| 441 | <hr> |
| 442 | Generated by GTK-Doc V1.18</div> |
| 443 | </body> |
| 444 | </html> |