1<!-- HTML header for doxygen 1.8.8--> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <!-- For Mobile Devices --> 7 <meta name="viewport" content="width=device-width, initial-scale=1"> 8 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 9 <meta name="generator" content="Doxygen 1.9.1"/> 10 <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> 11 <title>libevdev: Library logging facilities</title> 12 <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>--> 13 <script type="text/javascript" src="dynsections.js"></script> 14 <link href="search/search.css" rel="stylesheet" type="text/css"/> 15<script type="text/javascript" src="search/searchdata.js"></script> 16<script type="text/javascript" src="search/search.js"></script> 17 <link href="doxygen.css" rel="stylesheet" type="text/css" /> 18 <link href="bootstrap.css" rel="stylesheet" type="text/css"/> 19<link href="customdoxygen.css" rel="stylesheet" type="text/css"/> 20<link href="libevdevdoxygen.css" rel="stylesheet" type="text/css"/> 21 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> 22 <script type="text/javascript" src="doxy-boot.js"></script> 23 </head> 24 <body> 25 <nav class="navbar navbar-default" role="navigation"> 26 <div class="container"> 27 <div class="navbar-header"> 28 <a class="navbar-brand">libevdev 1.12.1</a> 29 </div> 30 </div> 31 </nav> 32 <div id="top"><!-- do not remove this div, it is closed by doxygen! --> 33 <div class="content" id="content"> 34 <div class="container"> 35 <div class="row"> 36 <div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;"> 37 <div style="margin-bottom: 15px;"> 38<!-- end header part --> 39<!-- Generated by Doxygen 1.9.1 --> 40<script type="text/javascript"> 41/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ 42var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); 43/* @license-end */ 44</script> 45<script type="text/javascript" src="menudata.js"></script> 46<script type="text/javascript" src="menu.js"></script> 47<script type="text/javascript"> 48/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ 49$(function() { 50 initMenu('',true,false,'search.php','Search'); 51 $(document).ready(function() { init_search(); }); 52}); 53/* @license-end */</script> 54<div id="main-nav"></div> 55</div><!-- top --> 56<!-- window showing the filter options --> 57<div id="MSearchSelectWindow" 58 onmouseover="return searchBox.OnSearchSelectShow()" 59 onmouseout="return searchBox.OnSearchSelectHide()" 60 onkeydown="return searchBox.OnSearchSelectKey(event)"> 61</div> 62 63<!-- iframe showing the search results (closed by default) --> 64<div id="MSearchResultsWindow"> 65<iframe src="javascript:void(0)" frameborder="0" 66 name="MSearchResults" id="MSearchResults"> 67</iframe> 68</div> 69 70<div class="header"> 71 <div class="summary"> 72<a href="#typedef-members">Typedefs</a> | 73<a href="#enum-members">Enumerations</a> | 74<a href="#func-members">Functions</a> </div> 75 <div class="headertitle"> 76<div class="title">Library logging facilities</div> </div> 77</div><!--header--> 78<div class="contents"> 79 80<p>libevdev provides two methods of logging library-internal messages. 81<a href="#details">More...</a></p> 82<table class="memberdecls"> 83<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> 84Typedefs</h2></td></tr> 85<tr class="memitem:gaf36c721d273c0794251eb7dacea2f0a4"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">libevdev_log_func_t</a>) (enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority, void *data, const char *file, int line, const char *func, const char *format, va_list args)</td></tr> 86<tr class="memdesc:gaf36c721d273c0794251eb7dacea2f0a4"><td class="mdescLeft"> </td><td class="mdescRight">Logging function called by library-internal logging. <a href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">More...</a><br /></td></tr> 87<tr class="separator:gaf36c721d273c0794251eb7dacea2f0a4"><td class="memSeparator" colspan="2"> </td></tr> 88<tr class="memitem:gab7eb997be2b701cc6f42e7b4c3478269"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">libevdev_device_log_func_t</a>) (const struct libevdev *dev, enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority, void *data, const char *file, int line, const char *func, const char *format, va_list args)</td></tr> 89<tr class="memdesc:gab7eb997be2b701cc6f42e7b4c3478269"><td class="mdescLeft"> </td><td class="mdescRight">Logging function called by library-internal logging for a specific libevdev context. <a href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">More...</a><br /></td></tr> 90<tr class="separator:gab7eb997be2b701cc6f42e7b4c3478269"><td class="memSeparator" colspan="2"> </td></tr> 91</table><table class="memberdecls"> 92<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> 93Enumerations</h2></td></tr> 94<tr class="memitem:ga0b798d0864f2b1b10e4603f9431b3364"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> { <a class="el" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a21fd1083f2ebd0a25f09ee982e365d5f">LIBEVDEV_LOG_ERROR</a> 95, <a class="el" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a4d13a031b112292ca3e7bab8c6d76abc">LIBEVDEV_LOG_INFO</a> 96, <a class="el" href="group__logging.html#gga0b798d0864f2b1b10e4603f9431b3364a760d66d422ffcf89b0f1ddb529b95793">LIBEVDEV_LOG_DEBUG</a> 97 }</td></tr> 98<tr class="separator:ga0b798d0864f2b1b10e4603f9431b3364"><td class="memSeparator" colspan="2"> </td></tr> 99</table><table class="memberdecls"> 100<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 101Functions</h2></td></tr> 102<tr class="memitem:gaa60be86b83b3a6c82d8e536ba89ff955"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955">libevdev_set_log_function</a> (<a class="el" href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">libevdev_log_func_t</a> logfunc, void *data)</td></tr> 103<tr class="memdesc:gaa60be86b83b3a6c82d8e536ba89ff955"><td class="mdescLeft"> </td><td class="mdescRight">Set a printf-style logging handler for library-internal logging. <a href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955">More...</a><br /></td></tr> 104<tr class="separator:gaa60be86b83b3a6c82d8e536ba89ff955"><td class="memSeparator" colspan="2"> </td></tr> 105<tr class="memitem:gaf6b6842a9ed98b61d0abb421e853fd89"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gaf6b6842a9ed98b61d0abb421e853fd89">libevdev_set_log_priority</a> (enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority)</td></tr> 106<tr class="memdesc:gaf6b6842a9ed98b61d0abb421e853fd89"><td class="mdescLeft"> </td><td class="mdescRight">Define the minimum level to be printed to the log handler. <a href="group__logging.html#gaf6b6842a9ed98b61d0abb421e853fd89">More...</a><br /></td></tr> 107<tr class="separator:gaf6b6842a9ed98b61d0abb421e853fd89"><td class="memSeparator" colspan="2"> </td></tr> 108<tr class="memitem:ga1da07493a798595cf85c127490b98ee8"><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga1da07493a798595cf85c127490b98ee8">libevdev_get_log_priority</a> (void)</td></tr> 109<tr class="memdesc:ga1da07493a798595cf85c127490b98ee8"><td class="mdescLeft"> </td><td class="mdescRight">Return the current log priority level. <a href="group__logging.html#ga1da07493a798595cf85c127490b98ee8">More...</a><br /></td></tr> 110<tr class="separator:ga1da07493a798595cf85c127490b98ee8"><td class="memSeparator" colspan="2"> </td></tr> 111<tr class="memitem:ga2830ff0aa391d8d1111682d3e762091b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b">libevdev_set_device_log_function</a> (struct libevdev *dev, <a class="el" href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">libevdev_device_log_func_t</a> logfunc, enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority, void *data)</td></tr> 112<tr class="memdesc:ga2830ff0aa391d8d1111682d3e762091b"><td class="mdescLeft"> </td><td class="mdescRight">Set a printf-style logging handler for library-internal logging for this device context. <a href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b">More...</a><br /></td></tr> 113<tr class="separator:ga2830ff0aa391d8d1111682d3e762091b"><td class="memSeparator" colspan="2"> </td></tr> 114</table> 115<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 116<p>libevdev provides two methods of logging library-internal messages. </p> 117<p>The old method is to provide a global log handler in <a class="el" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955" title="Set a printf-style logging handler for library-internal logging.">libevdev_set_log_function()</a>. The new method is to provide a per-context log handler in <a class="el" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b" title="Set a printf-style logging handler for library-internal logging for this device context.">libevdev_set_device_log_function()</a>. Developers are encouraged to use the per-context logging facilities over the global log handler as it provides access to the libevdev instance that caused a message, and is more flexible when libevdev is used from within a shared library.</p> 118<p>If a caller sets both the global log handler and a per-context log handler, each device with a per-context log handler will only invoke that log handler.</p> 119<dl class="section note"><dt>Note</dt><dd>To set a context-specific log handler, a context is needed. Thus developers are discouraged from using <a class="el" href="group__init.html#ga89bb5bce1c23e293293484b05b12aaf4" title="Initialize a new libevdev device from the given fd.">libevdev_new_from_fd()</a> as important messages from the device initialization process may get lost.</dd> 120<dd> 121A context-specific handler cannot be used for libevdev's uinput devices. <a class="el" href="group__uinput.html">uinput device creation</a> must use the global log handler. </dd></dl> 122<h2 class="groupheader">Typedef Documentation</h2> 123<a id="gab7eb997be2b701cc6f42e7b4c3478269"></a> 124<h2 class="memtitle"><span class="permalink"><a href="#gab7eb997be2b701cc6f42e7b4c3478269">◆ </a></span>libevdev_device_log_func_t</h2> 125 126<div class="memitem"> 127<div class="memproto"> 128 <table class="memname"> 129 <tr> 130 <td class="memname">typedef void(* libevdev_device_log_func_t) (const struct libevdev *dev, enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority, void *data, const char *file, int line, const char *func, const char *format, va_list args)</td> 131 </tr> 132 </table> 133</div><div class="memdoc"> 134 135<p>Logging function called by library-internal logging for a specific libevdev context. </p> 136<p>This function is expected to treat its input like printf would.</p> 137<dl class="params"><dt>Parameters</dt><dd> 138 <table class="params"> 139 <tr><td class="paramname">dev</td><td>The evdev device </td></tr> 140 <tr><td class="paramname">priority</td><td>Log priority of this message </td></tr> 141 <tr><td class="paramname">data</td><td>User-supplied data pointer (see <a class="el" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955" title="Set a printf-style logging handler for library-internal logging.">libevdev_set_log_function()</a>) </td></tr> 142 <tr><td class="paramname">file</td><td>libevdev source code file generating this message </td></tr> 143 <tr><td class="paramname">line</td><td>libevdev source code line generating this message </td></tr> 144 <tr><td class="paramname">func</td><td>libevdev source code function generating this message </td></tr> 145 <tr><td class="paramname">format</td><td>printf-style format string </td></tr> 146 <tr><td class="paramname">args</td><td>List of arguments</td></tr> 147 </table> 148 </dd> 149</dl> 150<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955" title="Set a printf-style logging handler for library-internal logging.">libevdev_set_log_function</a> </dd></dl> 151<dl class="section since"><dt>Since</dt><dd>1.3 </dd></dl> 152 153</div> 154</div> 155<a id="gaf36c721d273c0794251eb7dacea2f0a4"></a> 156<h2 class="memtitle"><span class="permalink"><a href="#gaf36c721d273c0794251eb7dacea2f0a4">◆ </a></span>libevdev_log_func_t</h2> 157 158<div class="memitem"> 159<div class="memproto"> 160 <table class="memname"> 161 <tr> 162 <td class="memname">typedef void(* libevdev_log_func_t) (enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> priority, void *data, const char *file, int line, const char *func, const char *format, va_list args)</td> 163 </tr> 164 </table> 165</div><div class="memdoc"> 166 167<p>Logging function called by library-internal logging. </p> 168<p>This function is expected to treat its input like printf would.</p> 169<dl class="params"><dt>Parameters</dt><dd> 170 <table class="params"> 171 <tr><td class="paramname">priority</td><td>Log priority of this message </td></tr> 172 <tr><td class="paramname">data</td><td>User-supplied data pointer (see <a class="el" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955" title="Set a printf-style logging handler for library-internal logging.">libevdev_set_log_function()</a>) </td></tr> 173 <tr><td class="paramname">file</td><td>libevdev source code file generating this message </td></tr> 174 <tr><td class="paramname">line</td><td>libevdev source code line generating this message </td></tr> 175 <tr><td class="paramname">func</td><td>libevdev source code function generating this message </td></tr> 176 <tr><td class="paramname">format</td><td>printf-style format string </td></tr> 177 <tr><td class="paramname">args</td><td>List of arguments</td></tr> 178 </table> 179 </dd> 180</dl> 181<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__logging.html#gaa60be86b83b3a6c82d8e536ba89ff955" title="Set a printf-style logging handler for library-internal logging.">libevdev_set_log_function</a> </dd></dl> 182 183</div> 184</div> 185<h2 class="groupheader">Enumeration Type Documentation</h2> 186<a id="ga0b798d0864f2b1b10e4603f9431b3364"></a> 187<h2 class="memtitle"><span class="permalink"><a href="#ga0b798d0864f2b1b10e4603f9431b3364">◆ </a></span>libevdev_log_priority</h2> 188 189<div class="memitem"> 190<div class="memproto"> 191 <table class="memname"> 192 <tr> 193 <td class="memname">enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a></td> 194 </tr> 195 </table> 196</div><div class="memdoc"> 197<table class="fieldtable"> 198<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga0b798d0864f2b1b10e4603f9431b3364a21fd1083f2ebd0a25f09ee982e365d5f"></a>LIBEVDEV_LOG_ERROR </td><td class="fielddoc"><p>critical errors and application bugs </p> 199</td></tr> 200<tr><td class="fieldname"><a id="gga0b798d0864f2b1b10e4603f9431b3364a4d13a031b112292ca3e7bab8c6d76abc"></a>LIBEVDEV_LOG_INFO </td><td class="fielddoc"><p>informational messages </p> 201</td></tr> 202<tr><td class="fieldname"><a id="gga0b798d0864f2b1b10e4603f9431b3364a760d66d422ffcf89b0f1ddb529b95793"></a>LIBEVDEV_LOG_DEBUG </td><td class="fielddoc"><p>debug information </p> 203</td></tr> 204</table> 205 206</div> 207</div> 208<h2 class="groupheader">Function Documentation</h2> 209<a id="ga1da07493a798595cf85c127490b98ee8"></a> 210<h2 class="memtitle"><span class="permalink"><a href="#ga1da07493a798595cf85c127490b98ee8">◆ </a></span>libevdev_get_log_priority()</h2> 211 212<div class="memitem"> 213<div class="memproto"> 214 <table class="memname"> 215 <tr> 216 <td class="memname">enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> libevdev_get_log_priority </td> 217 <td>(</td> 218 <td class="paramtype">void </td> 219 <td class="paramname"></td><td>)</td> 220 <td></td> 221 </tr> 222 </table> 223</div><div class="memdoc"> 224 225<p>Return the current log priority level. </p> 226<p>Messages higher than this level are printed, others are discarded. This is a global setting.</p> 227<dl class="section return"><dt>Returns</dt><dd>the current log level</dd></dl> 228<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Use per-context logging instead, see <a class="el" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b" title="Set a printf-style logging handler for library-internal logging for this device context.">libevdev_set_device_log_function()</a>. </dd></dl> 229 230</div> 231</div> 232<a id="ga2830ff0aa391d8d1111682d3e762091b"></a> 233<h2 class="memtitle"><span class="permalink"><a href="#ga2830ff0aa391d8d1111682d3e762091b">◆ </a></span>libevdev_set_device_log_function()</h2> 234 235<div class="memitem"> 236<div class="memproto"> 237 <table class="memname"> 238 <tr> 239 <td class="memname">void libevdev_set_device_log_function </td> 240 <td>(</td> 241 <td class="paramtype">struct libevdev * </td> 242 <td class="paramname"><em>dev</em>, </td> 243 </tr> 244 <tr> 245 <td class="paramkey"></td> 246 <td></td> 247 <td class="paramtype"><a class="el" href="group__logging.html#gab7eb997be2b701cc6f42e7b4c3478269">libevdev_device_log_func_t</a> </td> 248 <td class="paramname"><em>logfunc</em>, </td> 249 </tr> 250 <tr> 251 <td class="paramkey"></td> 252 <td></td> 253 <td class="paramtype">enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> </td> 254 <td class="paramname"><em>priority</em>, </td> 255 </tr> 256 <tr> 257 <td class="paramkey"></td> 258 <td></td> 259 <td class="paramtype">void * </td> 260 <td class="paramname"><em>data</em> </td> 261 </tr> 262 <tr> 263 <td></td> 264 <td>)</td> 265 <td></td><td></td> 266 </tr> 267 </table> 268</div><div class="memdoc"> 269 270<p>Set a printf-style logging handler for library-internal logging for this device context. </p> 271<p>The default logging function is NULL, i.e. the global log handler is invoked. If a context-specific log handler is set, the global log handler is not invoked for this device.</p> 272<dl class="section note"><dt>Note</dt><dd>This log function applies for this device context only, even if another context exists for the same fd.</dd></dl> 273<dl class="params"><dt>Parameters</dt><dd> 274 <table class="params"> 275 <tr><td class="paramname">dev</td><td>The evdev device </td></tr> 276 <tr><td class="paramname">logfunc</td><td>The logging function for this device. If NULL, the current logging function is unset and logging falls back to the global log handler, if any. </td></tr> 277 <tr><td class="paramname">priority</td><td>Minimum priority to be printed to the log. </td></tr> 278 <tr><td class="paramname">data</td><td>User-specific data passed to the log handler.</td></tr> 279 </table> 280 </dd> 281</dl> 282<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. </dd></dl> 283<dl class="section since"><dt>Since</dt><dd>1.3 </dd></dl> 284 285</div> 286</div> 287<a id="gaa60be86b83b3a6c82d8e536ba89ff955"></a> 288<h2 class="memtitle"><span class="permalink"><a href="#gaa60be86b83b3a6c82d8e536ba89ff955">◆ </a></span>libevdev_set_log_function()</h2> 289 290<div class="memitem"> 291<div class="memproto"> 292 <table class="memname"> 293 <tr> 294 <td class="memname">void libevdev_set_log_function </td> 295 <td>(</td> 296 <td class="paramtype"><a class="el" href="group__logging.html#gaf36c721d273c0794251eb7dacea2f0a4">libevdev_log_func_t</a> </td> 297 <td class="paramname"><em>logfunc</em>, </td> 298 </tr> 299 <tr> 300 <td class="paramkey"></td> 301 <td></td> 302 <td class="paramtype">void * </td> 303 <td class="paramname"><em>data</em> </td> 304 </tr> 305 <tr> 306 <td></td> 307 <td>)</td> 308 <td></td><td></td> 309 </tr> 310 </table> 311</div><div class="memdoc"> 312 313<p>Set a printf-style logging handler for library-internal logging. </p> 314<p>The default logging function is to stdout.</p> 315<dl class="section note"><dt>Note</dt><dd>The global log handler is only called if no context-specific log handler has been set with <a class="el" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b" title="Set a printf-style logging handler for library-internal logging for this device context.">libevdev_set_device_log_function()</a>.</dd></dl> 316<dl class="params"><dt>Parameters</dt><dd> 317 <table class="params"> 318 <tr><td class="paramname">logfunc</td><td>The logging function for this device. If NULL, the current logging function is unset and no logging is performed. </td></tr> 319 <tr><td class="paramname">data</td><td>User-specific data passed to the log handler.</td></tr> 320 </table> 321 </dd> 322</dl> 323<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>.</dd></dl> 324<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Use per-context logging instead, see <a class="el" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b" title="Set a printf-style logging handler for library-internal logging for this device context.">libevdev_set_device_log_function()</a>. </dd></dl> 325 326</div> 327</div> 328<a id="gaf6b6842a9ed98b61d0abb421e853fd89"></a> 329<h2 class="memtitle"><span class="permalink"><a href="#gaf6b6842a9ed98b61d0abb421e853fd89">◆ </a></span>libevdev_set_log_priority()</h2> 330 331<div class="memitem"> 332<div class="memproto"> 333 <table class="memname"> 334 <tr> 335 <td class="memname">void libevdev_set_log_priority </td> 336 <td>(</td> 337 <td class="paramtype">enum <a class="el" href="group__logging.html#ga0b798d0864f2b1b10e4603f9431b3364">libevdev_log_priority</a> </td> 338 <td class="paramname"><em>priority</em></td><td>)</td> 339 <td></td> 340 </tr> 341 </table> 342</div><div class="memdoc"> 343 344<p>Define the minimum level to be printed to the log handler. </p> 345<p>Messages higher than this level are printed, others are discarded. This is a global setting and applies to any future logging messages.</p> 346<dl class="params"><dt>Parameters</dt><dd> 347 <table class="params"> 348 <tr><td class="paramname">priority</td><td>Minimum priority to be printed to the log.</td></tr> 349 </table> 350 </dd> 351</dl> 352<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Use per-context logging instead, see <a class="el" href="group__logging.html#ga2830ff0aa391d8d1111682d3e762091b" title="Set a printf-style logging handler for library-internal logging for this device context.">libevdev_set_device_log_function()</a>. </dd></dl> 353 354</div> 355</div> 356</div><!-- contents --> 357<!-- HTML footer for doxygen 1.8.8--> 358<!-- start footer part --> 359</div> 360</div> 361</div> 362</div> 363</div> 364<hr class="footer"/><address class="footer"><small> 365Generated by  <a href="http://www.doxygen.org/index.html"> 366<img class="footer" src="doxygen.png" alt="doxygen"/> 367</a> 1.9.1 368</small></address> 369</body> 370</html> 371