| 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: UDisks Reference Manual</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 |
<link rel="home" href="index.html" title="UDisks Reference Manual"> |
| 8 |
<link rel="up" href="ref-daemon-core.html" title="Core"> |
| 9 |
<link rel="prev" href="udisks2-Utilities.html" title="Utilities"> |
| 10 |
<link rel="next" href="UDisksDaemon.html" title="UDisksDaemon"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.35.1 (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="5"><tr valign="middle"> |
| 16 |
<td width="100%" align="left" class="shortcuts"> |
| 17 |
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 |
<a href="#udisks2-Logging.description" class="shortcut">Description</a></span> |
| 19 |
</td> |
| 20 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 21 |
<td><a accesskey="u" href="ref-daemon-core.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 22 |
<td><a accesskey="p" href="udisks2-Utilities.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 |
<td><a accesskey="n" href="UDisksDaemon.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 24 |
</tr></table> |
| 25 |
<div class="refentry"> |
| 26 |
<a name="udisks2-Logging"></a><div class="titlepage"></div> |
| 27 |
<div class="refnamediv"><table width="100%"><tr> |
| 28 |
<td valign="top"> |
| 29 |
<h2><span class="refentrytitle"><a name="udisks2-Logging.top_of_page"></a>Logging</span></h2> |
| 30 |
<p>Logging — Logging Routines</p> |
| 31 |
</td> |
| 32 |
<td class="gallery_image" valign="top" align="right"></td> |
| 33 |
</tr></table></div> |
| 34 |
<div class="refsect1"> |
| 35 |
<a name="udisks2-Logging.functions"></a><h2>Functions</h2> |
| 36 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 37 |
<colgroup> |
| 38 |
<col width="150px" class="functions_proto_type"> |
| 39 |
<col class="functions_proto_name"> |
| 40 |
</colgroup> |
| 41 |
<tbody> |
| 42 |
<tr> |
| 43 |
<td class="function_type"> |
| 44 |
<span class="returnvalue">void</span> |
| 45 |
</td> |
| 46 |
<td class="function_name"> |
| 47 |
<a class="link" href="udisks2-Logging.html#udisks-log" title="udisks_log ()">udisks_log</a> <span class="c_punctuation">()</span> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td class="define_keyword">#define</td> |
| 52 |
<td class="function_name"> |
| 53 |
<a class="link" href="udisks2-Logging.html#udisks-debug" title="udisks_debug()">udisks_debug</a><span class="c_punctuation">()</span> |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
<tr> |
| 57 |
<td class="define_keyword">#define</td> |
| 58 |
<td class="function_name"> |
| 59 |
<a class="link" href="udisks2-Logging.html#udisks-info" title="udisks_info()">udisks_info</a><span class="c_punctuation">()</span> |
| 60 |
</td> |
| 61 |
</tr> |
| 62 |
<tr> |
| 63 |
<td class="define_keyword">#define</td> |
| 64 |
<td class="function_name"> |
| 65 |
<a class="link" href="udisks2-Logging.html#udisks-notice" title="udisks_notice()">udisks_notice</a><span class="c_punctuation">()</span> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
<tr> |
| 69 |
<td class="define_keyword">#define</td> |
| 70 |
<td class="function_name"> |
| 71 |
<a class="link" href="udisks2-Logging.html#udisks-warning" title="udisks_warning()">udisks_warning</a><span class="c_punctuation">()</span> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
<tr> |
| 75 |
<td class="define_keyword">#define</td> |
| 76 |
<td class="function_name"> |
| 77 |
<a class="link" href="udisks2-Logging.html#udisks-error" title="udisks_error()">udisks_error</a><span class="c_punctuation">()</span> |
| 78 |
</td> |
| 79 |
</tr> |
| 80 |
</tbody> |
| 81 |
</table></div> |
| 82 |
</div> |
| 83 |
<div class="refsect1"> |
| 84 |
<a name="udisks2-Logging.other"></a><h2>Types and Values</h2> |
| 85 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 86 |
<colgroup> |
| 87 |
<col width="150px" class="other_proto_type"> |
| 88 |
<col class="other_proto_name"> |
| 89 |
</colgroup> |
| 90 |
<tbody><tr> |
| 91 |
<td class="datatype_keyword">enum</td> |
| 92 |
<td class="function_name"><a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel">UDisksLogLevel</a></td> |
| 93 |
</tr></tbody> |
| 94 |
</table></div> |
| 95 |
</div> |
| 96 |
<div class="refsect1"> |
| 97 |
<a name="udisks2-Logging.description"></a><h2>Description</h2> |
| 98 |
<p>Logging routines.</p> |
| 99 |
</div> |
| 100 |
<div class="refsect1"> |
| 101 |
<a name="udisks2-Logging.functions_details"></a><h2>Functions</h2> |
| 102 |
<div class="refsect2"> |
| 103 |
<a name="udisks-log"></a><h3>udisks_log ()</h3> |
| 104 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 105 |
udisks_log (<em class="parameter"><code><a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a> level</code></em>, |
| 106 |
<em class="parameter"><code>const <span class="type">gchar</span> *function</code></em>, |
| 107 |
<em class="parameter"><code>const <span class="type">gchar</span> *location</code></em>, |
| 108 |
<em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>, |
| 109 |
<em class="parameter"><code>...</code></em>);</pre> |
| 110 |
<p>Low-level logging function used by <a class="link" href="udisks2-Logging.html#udisks-debug" title="udisks_debug()"><code class="function">udisks_debug()</code></a> and other macros.</p> |
| 111 |
<div class="refsect3"> |
| 112 |
<a name="udisks-log.parameters"></a><h4>Parameters</h4> |
| 113 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 114 |
<colgroup> |
| 115 |
<col width="150px" class="parameters_name"> |
| 116 |
<col class="parameters_description"> |
| 117 |
<col width="200px" class="parameters_annotations"> |
| 118 |
</colgroup> |
| 119 |
<tbody> |
| 120 |
<tr> |
| 121 |
<td class="parameter_name"><p>level</p></td> |
| 122 |
<td class="parameter_description"><p>A <a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a>.</p></td> |
| 123 |
<td class="parameter_annotations"> </td> |
| 124 |
</tr> |
| 125 |
<tr> |
| 126 |
<td class="parameter_name"><p>function</p></td> |
| 127 |
<td class="parameter_description"><p>Pass <span class="type">G_STRFUNC</span> here.</p></td> |
| 128 |
<td class="parameter_annotations"> </td> |
| 129 |
</tr> |
| 130 |
<tr> |
| 131 |
<td class="parameter_name"><p>location</p></td> |
| 132 |
<td class="parameter_description"><p>Pass <span class="type">G_STRLOC</span> here.</p></td> |
| 133 |
<td class="parameter_annotations"> </td> |
| 134 |
</tr> |
| 135 |
<tr> |
| 136 |
<td class="parameter_name"><p>format</p></td> |
| 137 |
<td class="parameter_description"><p>printf()-style format.</p></td> |
| 138 |
<td class="parameter_annotations"> </td> |
| 139 |
</tr> |
| 140 |
<tr> |
| 141 |
<td class="parameter_name"><p>...</p></td> |
| 142 |
<td class="parameter_description"><p>Arguments for format.</p></td> |
| 143 |
<td class="parameter_annotations"> </td> |
| 144 |
</tr> |
| 145 |
</tbody> |
| 146 |
</table></div> |
| 147 |
</div> |
| 148 |
</div> |
| 149 |
<hr> |
| 150 |
<div class="refsect2"> |
| 151 |
<a name="udisks-debug"></a><h3>udisks_debug()</h3> |
| 152 |
<pre class="programlisting">#define udisks_debug(args...) udisks_log(UDISKS_LOG_LEVEL_DEBUG, G_STRFUNC, G_STRLOC, args) |
| 153 |
</pre> |
| 154 |
<p>Logging macro for <a class="link" href="udisks2-Logging.html#UDISKS-LOG-LEVEL-DEBUG:CAPS"><code class="literal">UDISKS_LOG_LEVEL_DEBUG</code></a>. |
| 155 |
Warning: ONLY WORKS WHEN COMPILED WITH --enable-debug</p> |
| 156 |
<p>See <a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a> for more details.</p> |
| 157 |
<div class="refsect3"> |
| 158 |
<a name="udisks-debug.parameters"></a><h4>Parameters</h4> |
| 159 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 160 |
<colgroup> |
| 161 |
<col width="150px" class="parameters_name"> |
| 162 |
<col class="parameters_description"> |
| 163 |
<col width="200px" class="parameters_annotations"> |
| 164 |
</colgroup> |
| 165 |
<tbody><tr> |
| 166 |
<td class="parameter_name"><p>args...</p></td> |
| 167 |
<td class="parameter_description"><p>printf()-style format string and arguments</p></td> |
| 168 |
<td class="parameter_annotations"> </td> |
| 169 |
</tr></tbody> |
| 170 |
</table></div> |
| 171 |
</div> |
| 172 |
</div> |
| 173 |
<hr> |
| 174 |
<div class="refsect2"> |
| 175 |
<a name="udisks-info"></a><h3>udisks_info()</h3> |
| 176 |
<pre class="programlisting">#define udisks_info(args...) udisks_log(UDISKS_LOG_LEVEL_INFO, G_STRFUNC, G_STRLOC, args) |
| 177 |
</pre> |
| 178 |
<p>Logging macro for <a class="link" href="udisks2-Logging.html#UDISKS-LOG-LEVEL-INFO:CAPS"><code class="literal">UDISKS_LOG_LEVEL_INFO</code></a>. |
| 179 |
Warning: ONLY WORKS WHEN COMPILED WITH --enable-debug</p> |
| 180 |
<p>See <a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a> for more details.</p> |
| 181 |
<div class="refsect3"> |
| 182 |
<a name="udisks-info.parameters"></a><h4>Parameters</h4> |
| 183 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 184 |
<colgroup> |
| 185 |
<col width="150px" class="parameters_name"> |
| 186 |
<col class="parameters_description"> |
| 187 |
<col width="200px" class="parameters_annotations"> |
| 188 |
</colgroup> |
| 189 |
<tbody><tr> |
| 190 |
<td class="parameter_name"><p>args...</p></td> |
| 191 |
<td class="parameter_description"><p>printf()-style format string and arguments</p></td> |
| 192 |
<td class="parameter_annotations"> </td> |
| 193 |
</tr></tbody> |
| 194 |
</table></div> |
| 195 |
</div> |
| 196 |
</div> |
| 197 |
<hr> |
| 198 |
<div class="refsect2"> |
| 199 |
<a name="udisks-notice"></a><h3>udisks_notice()</h3> |
| 200 |
<pre class="programlisting">#define udisks_notice(args...) udisks_log(UDISKS_LOG_LEVEL_MESSAGE, G_STRFUNC, G_STRLOC, args) |
| 201 |
</pre> |
| 202 |
<p>Logging macro for <a class="link" href="udisks2-Logging.html#UDISKS-LOG-LEVEL-MESSAGE:CAPS"><code class="literal">UDISKS_LOG_LEVEL_MESSAGE</code></a>.</p> |
| 203 |
<p>See <a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a> for more details.</p> |
| 204 |
<div class="refsect3"> |
| 205 |
<a name="udisks-notice.parameters"></a><h4>Parameters</h4> |
| 206 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 207 |
<colgroup> |
| 208 |
<col width="150px" class="parameters_name"> |
| 209 |
<col class="parameters_description"> |
| 210 |
<col width="200px" class="parameters_annotations"> |
| 211 |
</colgroup> |
| 212 |
<tbody><tr> |
| 213 |
<td class="parameter_name"><p>args...</p></td> |
| 214 |
<td class="parameter_description"><p>printf()-style format string and arguments</p></td> |
| 215 |
<td class="parameter_annotations"> </td> |
| 216 |
</tr></tbody> |
| 217 |
</table></div> |
| 218 |
</div> |
| 219 |
</div> |
| 220 |
<hr> |
| 221 |
<div class="refsect2"> |
| 222 |
<a name="udisks-warning"></a><h3>udisks_warning()</h3> |
| 223 |
<pre class="programlisting">#define udisks_warning(args...) udisks_log(UDISKS_LOG_LEVEL_WARNING, G_STRFUNC, G_STRLOC, args) |
| 224 |
</pre> |
| 225 |
<p>Logging macro for <a class="link" href="udisks2-Logging.html#UDISKS-LOG-LEVEL-WARNING:CAPS"><code class="literal">UDISKS_LOG_LEVEL_WARNING</code></a>.</p> |
| 226 |
<p>See <a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a> for more details.</p> |
| 227 |
<div class="refsect3"> |
| 228 |
<a name="udisks-warning.parameters"></a><h4>Parameters</h4> |
| 229 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 230 |
<colgroup> |
| 231 |
<col width="150px" class="parameters_name"> |
| 232 |
<col class="parameters_description"> |
| 233 |
<col width="200px" class="parameters_annotations"> |
| 234 |
</colgroup> |
| 235 |
<tbody><tr> |
| 236 |
<td class="parameter_name"><p>args...</p></td> |
| 237 |
<td class="parameter_description"><p>printf()-style format string and arguments</p></td> |
| 238 |
<td class="parameter_annotations"> </td> |
| 239 |
</tr></tbody> |
| 240 |
</table></div> |
| 241 |
</div> |
| 242 |
</div> |
| 243 |
<hr> |
| 244 |
<div class="refsect2"> |
| 245 |
<a name="udisks-error"></a><h3>udisks_error()</h3> |
| 246 |
<pre class="programlisting">#define udisks_error(args...) udisks_log(UDISKS_LOG_LEVEL_ERROR, G_STRFUNC, G_STRLOC, args) |
| 247 |
</pre> |
| 248 |
<p>Logging macro for <a class="link" href="udisks2-Logging.html#UDISKS-LOG-LEVEL-ERROR:CAPS"><code class="literal">UDISKS_LOG_LEVEL_ERROR</code></a>. |
| 249 |
Warning: THIS ALSO TERMINATES THE PROCESS with the <code class="function">abort()</code> call!</p> |
| 250 |
<p>See <a class="link" href="udisks2-Logging.html#UDisksLogLevel" title="enum UDisksLogLevel"><span class="type">UDisksLogLevel</span></a> for more details.</p> |
| 251 |
<div class="refsect3"> |
| 252 |
<a name="udisks-error.parameters"></a><h4>Parameters</h4> |
| 253 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 254 |
<colgroup> |
| 255 |
<col width="150px" class="parameters_name"> |
| 256 |
<col class="parameters_description"> |
| 257 |
<col width="200px" class="parameters_annotations"> |
| 258 |
</colgroup> |
| 259 |
<tbody><tr> |
| 260 |
<td class="parameter_name"><p>args...</p></td> |
| 261 |
<td class="parameter_description"><p>printf()-style format string and arguments</p></td> |
| 262 |
<td class="parameter_annotations"> </td> |
| 263 |
</tr></tbody> |
| 264 |
</table></div> |
| 265 |
</div> |
| 266 |
</div> |
| 267 |
</div> |
| 268 |
<div class="refsect1"> |
| 269 |
<a name="udisks2-Logging.other_details"></a><h2>Types and Values</h2> |
| 270 |
<div class="refsect2"> |
| 271 |
<a name="UDisksLogLevel"></a><h3>enum UDisksLogLevel</h3> |
| 272 |
<p>Logging levels. The level <em class="parameter"><code>UDISKS_LOG_LEVEL_MESSAGE</code></em> |
| 273 |
and above goes to syslog.</p> |
| 274 |
<p>Unlike <code class="function">g_warning()</code> and <code class="function">g_error()</code>, none of these logging levels causes the program to ever terminate.</p> |
| 275 |
<div class="refsect3"> |
| 276 |
<a name="UDisksLogLevel.members"></a><h4>Members</h4> |
| 277 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 278 |
<colgroup> |
| 279 |
<col width="300px" class="enum_members_name"> |
| 280 |
<col class="enum_members_description"> |
| 281 |
<col width="200px" class="enum_members_annotations"> |
| 282 |
</colgroup> |
| 283 |
<tbody> |
| 284 |
<tr> |
| 285 |
<td class="enum_member_name"><p><a name="UDISKS-LOG-LEVEL-DEBUG:CAPS"></a>UDISKS_LOG_LEVEL_DEBUG</p></td> |
| 286 |
<td class="enum_member_description"> |
| 287 |
<p>Debug messages.</p> |
| 288 |
</td> |
| 289 |
<td class="enum_member_annotations"> </td> |
| 290 |
</tr> |
| 291 |
<tr> |
| 292 |
<td class="enum_member_name"><p><a name="UDISKS-LOG-LEVEL-INFO:CAPS"></a>UDISKS_LOG_LEVEL_INFO</p></td> |
| 293 |
<td class="enum_member_description"> |
| 294 |
<p>Informational messages.</p> |
| 295 |
</td> |
| 296 |
<td class="enum_member_annotations"> </td> |
| 297 |
</tr> |
| 298 |
<tr> |
| 299 |
<td class="enum_member_name"><p><a name="UDISKS-LOG-LEVEL-MESSAGE:CAPS"></a>UDISKS_LOG_LEVEL_MESSAGE</p></td> |
| 300 |
<td class="enum_member_description"> |
| 301 |
<p>Messages that the administrator should take notice of.</p> |
| 302 |
</td> |
| 303 |
<td class="enum_member_annotations"> </td> |
| 304 |
</tr> |
| 305 |
<tr> |
| 306 |
<td class="enum_member_name"><p><a name="UDISKS-LOG-LEVEL-WARNING:CAPS"></a>UDISKS_LOG_LEVEL_WARNING</p></td> |
| 307 |
<td class="enum_member_description"> |
| 308 |
<p>Warning messages.</p> |
| 309 |
</td> |
| 310 |
<td class="enum_member_annotations"> </td> |
| 311 |
</tr> |
| 312 |
<tr> |
| 313 |
<td class="enum_member_name"><p><a name="UDISKS-LOG-LEVEL-CRITICAL:CAPS"></a>UDISKS_LOG_LEVEL_CRITICAL</p></td> |
| 314 |
<td class="enum_member_description"> |
| 315 |
<p>Critical warning messages.</p> |
| 316 |
</td> |
| 317 |
<td class="enum_member_annotations"> </td> |
| 318 |
</tr> |
| 319 |
<tr> |
| 320 |
<td class="enum_member_name"><p><a name="UDISKS-LOG-LEVEL-ERROR:CAPS"></a>UDISKS_LOG_LEVEL_ERROR</p></td> |
| 321 |
<td class="enum_member_description"> |
| 322 |
<p>Error messages.</p> |
| 323 |
</td> |
| 324 |
<td class="enum_member_annotations"> </td> |
| 325 |
</tr> |
| 326 |
</tbody> |
| 327 |
</table></div> |
| 328 |
</div> |
| 329 |
</div> |
| 330 |
</div> |
| 331 |
</div> |
| 332 |
<div class="footer"> |
| 333 |
<hr>Generated by GTK-Doc V1.35.1</div> |
| 334 |
</body> |
| 335 |
</html> |