logger_8h.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.10"/>
  7. <title>CoffeePi: logger.h File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">CoffeePi
  27. </div>
  28. <div id="projectbrief">Coffee machine control for Raspberry Pi</div>
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. <!-- end header part -->
  35. <!-- Generated by Doxygen 1.8.10 -->
  36. <script type="text/javascript">
  37. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  38. </script>
  39. <div id="navrow1" class="tabs">
  40. <ul class="tablist">
  41. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  42. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  43. <li class="current"><a href="files.html"><span>Files</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Search" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="files.html"><span>File&#160;List</span></a></li>
  65. <li><a href="globals.html"><span>Globals</span></a></li>
  66. </ul>
  67. </div>
  68. <!-- window showing the filter options -->
  69. <div id="MSearchSelectWindow"
  70. onmouseover="return searchBox.OnSearchSelectShow()"
  71. onmouseout="return searchBox.OnSearchSelectHide()"
  72. onkeydown="return searchBox.OnSearchSelectKey(event)">
  73. </div>
  74. <!-- iframe showing the search results (closed by default) -->
  75. <div id="MSearchResultsWindow">
  76. <iframe src="javascript:void(0)" frameborder="0"
  77. name="MSearchResults" id="MSearchResults">
  78. </iframe>
  79. </div>
  80. </div><!-- top -->
  81. <div class="header">
  82. <div class="summary">
  83. <a href="#define-members">Macros</a> &#124;
  84. <a href="#enum-members">Enumerations</a> &#124;
  85. <a href="#func-members">Functions</a> </div>
  86. <div class="headertitle">
  87. <div class="title">logger.h File Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p><a href="logger_8h_source.html">Go to the source code of this file.</a></p>
  91. <table class="memberdecls">
  92. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  93. Macros</h2></td></tr>
  94. <tr class="memitem:acdbdbd1e0c5422f3d1f7aa3960957e0a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#acdbdbd1e0c5422f3d1f7aa3960957e0a">USE_COLORS</a></td></tr>
  95. <tr class="separator:acdbdbd1e0c5422f3d1f7aa3960957e0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a137aa83ec74421d226a90c92ec032ac9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a137aa83ec74421d226a90c92ec032ac9">KNRM</a>&#160;&#160;&#160;&quot;\x1B[0m&quot;</td></tr>
  97. <tr class="separator:a137aa83ec74421d226a90c92ec032ac9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a66290957baed5df3930ada4cb8caccf1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a66290957baed5df3930ada4cb8caccf1">KRED</a>&#160;&#160;&#160;&quot;\x1B[31m&quot;</td></tr>
  99. <tr class="separator:a66290957baed5df3930ada4cb8caccf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:ac081c83b067273757f7a2e54a5957d41"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#ac081c83b067273757f7a2e54a5957d41">KGRN</a>&#160;&#160;&#160;&quot;\x1B[32m&quot;</td></tr>
  101. <tr class="separator:ac081c83b067273757f7a2e54a5957d41"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a897b10d246533c95ba86cb79f92e465a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a897b10d246533c95ba86cb79f92e465a">KYEL</a>&#160;&#160;&#160;&quot;\x1B[33m&quot;</td></tr>
  103. <tr class="separator:a897b10d246533c95ba86cb79f92e465a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a3f838f2fc3a9a3b434be606fc908964b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a3f838f2fc3a9a3b434be606fc908964b">KBLU</a>&#160;&#160;&#160;&quot;\x1B[34m&quot;</td></tr>
  105. <tr class="separator:a3f838f2fc3a9a3b434be606fc908964b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a6825f05d3b9d619d91d79d0ef18bb8b2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a6825f05d3b9d619d91d79d0ef18bb8b2">KMAG</a>&#160;&#160;&#160;&quot;\x1B[35m&quot;</td></tr>
  107. <tr class="separator:a6825f05d3b9d619d91d79d0ef18bb8b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a32036c94dbb166a3f874b7efc169841f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a32036c94dbb166a3f874b7efc169841f">KCYN</a>&#160;&#160;&#160;&quot;\x1B[36m&quot;</td></tr>
  109. <tr class="separator:a32036c94dbb166a3f874b7efc169841f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:af0036c8022c9980079ab17e5c87fd478"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#af0036c8022c9980079ab17e5c87fd478">KWHT</a>&#160;&#160;&#160;&quot;\x1B[37m&quot;</td></tr>
  111. <tr class="separator:af0036c8022c9980079ab17e5c87fd478"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ae39a97a19b2e372929dabdc0e3822910"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#ae39a97a19b2e372929dabdc0e3822910">CLEARLINE</a>&#160;&#160;&#160;&quot;\x1B[100D\x1B[1A\x1B[K&quot;</td></tr>
  113. <tr class="separator:ae39a97a19b2e372929dabdc0e3822910"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a815022697da1d2d7744ff178e940078c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a815022697da1d2d7744ff178e940078c">KBOLD</a>&#160;&#160;&#160;&quot;\x1B[1m&quot;</td></tr>
  115. <tr class="separator:a815022697da1d2d7744ff178e940078c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. </table><table class="memberdecls">
  117. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
  118. Enumerations</h2></td></tr>
  119. <tr class="memitem:a60cbc432422370d29ed1b783be884823"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a> { <br />
  120. &#160;&#160;<a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a6e98ff471e3ce6c4ef2d75c37ee51837">LOG_INFO</a> = 0,
  121. <a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a854a22c1c382f9b7a93bf8e556191c5f">LOG_CAN</a> = 1,
  122. <a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a746c53b13e16f15d1d885f75efaf58b1">LOG_OK</a> = 2,
  123. <a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823ac8041ffa22bc823d4726701cdb13fc13">LOG_WARN</a> = 3,
  124. <br />
  125. &#160;&#160;<a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a> = 4,
  126. <a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a1ee7c46e5fb6cad577d81e275a4f8218">LOG_ERRORC</a> = 5
  127. <br />
  128. }<tr class="separator:a60cbc432422370d29ed1b783be884823"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. </td></tr>
  130. <tr class="memitem:a1cfb4eb1363ea2e4d18f9052a7a98131"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a> { <br />
  131. &#160;&#160;<a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131afa973d27e66919a26910ccef33a3606a">V_NONE</a> = 0,
  132. <a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a8470d917f387c308f571d2f370c238a3">V_BASIC</a> = 1,
  133. <a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131ac26291e5906a8e13146ec8dc56a0869a">V_BREW</a> = 2,
  134. <a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a9a36496e8d624d5ea70b3f86bc2c0bed">V_HAL</a> = 3,
  135. <br />
  136. &#160;&#160;<a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131acf3ff5c46ec466c2d7438651b46cc17c">V_SQL</a> = 4,
  137. <a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a6af331195d8ce87720090a3eece459e4">V_STRIPE</a> = 5,
  138. <a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a86acf22e226ebf319ce306ea1af2d95a">V_SPI</a> = 6
  139. <br />
  140. }<tr class="separator:a1cfb4eb1363ea2e4d18f9052a7a98131"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. </td></tr>
  142. </table><table class="memberdecls">
  143. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  144. Functions</h2></td></tr>
  145. <tr class="memitem:ab5a2104bf520b79d590c6ef11cdeeb02"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#ab5a2104bf520b79d590c6ef11cdeeb02">logger_error</a> (const char *format,...)</td></tr>
  146. <tr class="memdesc:ab5a2104bf520b79d590c6ef11cdeeb02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Outputs the printf like formatted message to stderr and colorizes it. <a href="#ab5a2104bf520b79d590c6ef11cdeeb02">More...</a><br /></td></tr>
  147. <tr class="separator:ab5a2104bf520b79d590c6ef11cdeeb02"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:abd01f221b7a194e67bb39d88822c9772"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#abd01f221b7a194e67bb39d88822c9772">logger_reset</a> ()</td></tr>
  149. <tr class="memdesc:abd01f221b7a194e67bb39d88822c9772"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the logger to prevent the previous line being overdrawn. <a href="#abd01f221b7a194e67bb39d88822c9772">More...</a><br /></td></tr>
  150. <tr class="separator:abd01f221b7a194e67bb39d88822c9772"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a1f2dbdf600d66c1c1bcc820d0282d132"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#a1f2dbdf600d66c1c1bcc820d0282d132">logger</a> (<a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a> verboselevel, <a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a> logtype, const char *format,...)</td></tr>
  152. <tr class="memdesc:a1f2dbdf600d66c1c1bcc820d0282d132"><td class="mdescLeft">&#160;</td><td class="mdescRight">prints the message to stdout and formats it <a href="#a1f2dbdf600d66c1c1bcc820d0282d132">More...</a><br /></td></tr>
  153. <tr class="separator:a1f2dbdf600d66c1c1bcc820d0282d132"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:ad6ed0024f33524ff5e96b473a18b44fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8h.html#ad6ed0024f33524ff5e96b473a18b44fd">logger</a> (<a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a> verboselevel, const char *format,...)</td></tr>
  155. <tr class="memdesc:ad6ed0024f33524ff5e96b473a18b44fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">prints the message to stdout <a href="#ad6ed0024f33524ff5e96b473a18b44fd">More...</a><br /></td></tr>
  156. <tr class="separator:ad6ed0024f33524ff5e96b473a18b44fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. </table>
  158. <h2 class="groupheader">Macro Definition Documentation</h2>
  159. <a class="anchor" id="ae39a97a19b2e372929dabdc0e3822910"></a>
  160. <div class="memitem">
  161. <div class="memproto">
  162. <table class="memname">
  163. <tr>
  164. <td class="memname">#define CLEARLINE&#160;&#160;&#160;&quot;\x1B[100D\x1B[1A\x1B[K&quot;</td>
  165. </tr>
  166. </table>
  167. </div><div class="memdoc">
  168. </div>
  169. </div>
  170. <a class="anchor" id="a3f838f2fc3a9a3b434be606fc908964b"></a>
  171. <div class="memitem">
  172. <div class="memproto">
  173. <table class="memname">
  174. <tr>
  175. <td class="memname">#define KBLU&#160;&#160;&#160;&quot;\x1B[34m&quot;</td>
  176. </tr>
  177. </table>
  178. </div><div class="memdoc">
  179. </div>
  180. </div>
  181. <a class="anchor" id="a815022697da1d2d7744ff178e940078c"></a>
  182. <div class="memitem">
  183. <div class="memproto">
  184. <table class="memname">
  185. <tr>
  186. <td class="memname">#define KBOLD&#160;&#160;&#160;&quot;\x1B[1m&quot;</td>
  187. </tr>
  188. </table>
  189. </div><div class="memdoc">
  190. </div>
  191. </div>
  192. <a class="anchor" id="a32036c94dbb166a3f874b7efc169841f"></a>
  193. <div class="memitem">
  194. <div class="memproto">
  195. <table class="memname">
  196. <tr>
  197. <td class="memname">#define KCYN&#160;&#160;&#160;&quot;\x1B[36m&quot;</td>
  198. </tr>
  199. </table>
  200. </div><div class="memdoc">
  201. </div>
  202. </div>
  203. <a class="anchor" id="ac081c83b067273757f7a2e54a5957d41"></a>
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="memname">
  207. <tr>
  208. <td class="memname">#define KGRN&#160;&#160;&#160;&quot;\x1B[32m&quot;</td>
  209. </tr>
  210. </table>
  211. </div><div class="memdoc">
  212. </div>
  213. </div>
  214. <a class="anchor" id="a6825f05d3b9d619d91d79d0ef18bb8b2"></a>
  215. <div class="memitem">
  216. <div class="memproto">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">#define KMAG&#160;&#160;&#160;&quot;\x1B[35m&quot;</td>
  220. </tr>
  221. </table>
  222. </div><div class="memdoc">
  223. </div>
  224. </div>
  225. <a class="anchor" id="a137aa83ec74421d226a90c92ec032ac9"></a>
  226. <div class="memitem">
  227. <div class="memproto">
  228. <table class="memname">
  229. <tr>
  230. <td class="memname">#define KNRM&#160;&#160;&#160;&quot;\x1B[0m&quot;</td>
  231. </tr>
  232. </table>
  233. </div><div class="memdoc">
  234. </div>
  235. </div>
  236. <a class="anchor" id="a66290957baed5df3930ada4cb8caccf1"></a>
  237. <div class="memitem">
  238. <div class="memproto">
  239. <table class="memname">
  240. <tr>
  241. <td class="memname">#define KRED&#160;&#160;&#160;&quot;\x1B[31m&quot;</td>
  242. </tr>
  243. </table>
  244. </div><div class="memdoc">
  245. </div>
  246. </div>
  247. <a class="anchor" id="af0036c8022c9980079ab17e5c87fd478"></a>
  248. <div class="memitem">
  249. <div class="memproto">
  250. <table class="memname">
  251. <tr>
  252. <td class="memname">#define KWHT&#160;&#160;&#160;&quot;\x1B[37m&quot;</td>
  253. </tr>
  254. </table>
  255. </div><div class="memdoc">
  256. </div>
  257. </div>
  258. <a class="anchor" id="a897b10d246533c95ba86cb79f92e465a"></a>
  259. <div class="memitem">
  260. <div class="memproto">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">#define KYEL&#160;&#160;&#160;&quot;\x1B[33m&quot;</td>
  264. </tr>
  265. </table>
  266. </div><div class="memdoc">
  267. </div>
  268. </div>
  269. <a class="anchor" id="acdbdbd1e0c5422f3d1f7aa3960957e0a"></a>
  270. <div class="memitem">
  271. <div class="memproto">
  272. <table class="memname">
  273. <tr>
  274. <td class="memname">#define USE_COLORS</td>
  275. </tr>
  276. </table>
  277. </div><div class="memdoc">
  278. </div>
  279. </div>
  280. <h2 class="groupheader">Enumeration Type Documentation</h2>
  281. <a class="anchor" id="a60cbc432422370d29ed1b783be884823"></a>
  282. <div class="memitem">
  283. <div class="memproto">
  284. <table class="memname">
  285. <tr>
  286. <td class="memname">enum <a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a></td>
  287. </tr>
  288. </table>
  289. </div><div class="memdoc">
  290. <table class="fieldtable">
  291. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a60cbc432422370d29ed1b783be884823a6e98ff471e3ce6c4ef2d75c37ee51837"></a>LOG_INFO&#160;</td><td class="fielddoc">
  292. </td></tr>
  293. <tr><td class="fieldname"><a class="anchor" id="a60cbc432422370d29ed1b783be884823a854a22c1c382f9b7a93bf8e556191c5f"></a>LOG_CAN&#160;</td><td class="fielddoc">
  294. </td></tr>
  295. <tr><td class="fieldname"><a class="anchor" id="a60cbc432422370d29ed1b783be884823a746c53b13e16f15d1d885f75efaf58b1"></a>LOG_OK&#160;</td><td class="fielddoc">
  296. </td></tr>
  297. <tr><td class="fieldname"><a class="anchor" id="a60cbc432422370d29ed1b783be884823ac8041ffa22bc823d4726701cdb13fc13"></a>LOG_WARN&#160;</td><td class="fielddoc">
  298. </td></tr>
  299. <tr><td class="fieldname"><a class="anchor" id="a60cbc432422370d29ed1b783be884823a230506cce5c68c3bac5a821c42ed3473"></a>LOG_ERROR&#160;</td><td class="fielddoc">
  300. </td></tr>
  301. <tr><td class="fieldname"><a class="anchor" id="a60cbc432422370d29ed1b783be884823a1ee7c46e5fb6cad577d81e275a4f8218"></a>LOG_ERRORC&#160;</td><td class="fielddoc">
  302. </td></tr>
  303. </table>
  304. </div>
  305. </div>
  306. <a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131"></a>
  307. <div class="memitem">
  308. <div class="memproto">
  309. <table class="memname">
  310. <tr>
  311. <td class="memname">enum <a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a></td>
  312. </tr>
  313. </table>
  314. </div><div class="memdoc">
  315. <table class="fieldtable">
  316. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131afa973d27e66919a26910ccef33a3606a"></a>V_NONE&#160;</td><td class="fielddoc">
  317. </td></tr>
  318. <tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131a8470d917f387c308f571d2f370c238a3"></a>V_BASIC&#160;</td><td class="fielddoc">
  319. </td></tr>
  320. <tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131ac26291e5906a8e13146ec8dc56a0869a"></a>V_BREW&#160;</td><td class="fielddoc">
  321. </td></tr>
  322. <tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131a9a36496e8d624d5ea70b3f86bc2c0bed"></a>V_HAL&#160;</td><td class="fielddoc">
  323. </td></tr>
  324. <tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131acf3ff5c46ec466c2d7438651b46cc17c"></a>V_SQL&#160;</td><td class="fielddoc">
  325. </td></tr>
  326. <tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131a6af331195d8ce87720090a3eece459e4"></a>V_STRIPE&#160;</td><td class="fielddoc">
  327. </td></tr>
  328. <tr><td class="fieldname"><a class="anchor" id="a1cfb4eb1363ea2e4d18f9052a7a98131a86acf22e226ebf319ce306ea1af2d95a"></a>V_SPI&#160;</td><td class="fielddoc">
  329. </td></tr>
  330. </table>
  331. </div>
  332. </div>
  333. <h2 class="groupheader">Function Documentation</h2>
  334. <a class="anchor" id="a1f2dbdf600d66c1c1bcc820d0282d132"></a>
  335. <div class="memitem">
  336. <div class="memproto">
  337. <table class="memname">
  338. <tr>
  339. <td class="memname">void logger </td>
  340. <td>(</td>
  341. <td class="paramtype"><a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a>&#160;</td>
  342. <td class="paramname"><em>verboselevel</em>, </td>
  343. </tr>
  344. <tr>
  345. <td class="paramkey"></td>
  346. <td></td>
  347. <td class="paramtype"><a class="el" href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a>&#160;</td>
  348. <td class="paramname"><em>logtype</em>, </td>
  349. </tr>
  350. <tr>
  351. <td class="paramkey"></td>
  352. <td></td>
  353. <td class="paramtype">const char *&#160;</td>
  354. <td class="paramname"><em>format</em>, </td>
  355. </tr>
  356. <tr>
  357. <td class="paramkey"></td>
  358. <td></td>
  359. <td class="paramtype">&#160;</td>
  360. <td class="paramname"><em>...</em>&#160;</td>
  361. </tr>
  362. <tr>
  363. <td></td>
  364. <td>)</td>
  365. <td></td><td></td>
  366. </tr>
  367. </table>
  368. </div><div class="memdoc">
  369. <p>prints the message to stdout and formats it </p>
  370. <dl class="params"><dt>Parameters</dt><dd>
  371. <table class="params">
  372. <tr><td class="paramname">verboselevel</td><td>minimum verbose level for output </td></tr>
  373. <tr><td class="paramname">logtype</td><td>type of logmessage for coloring </td></tr>
  374. <tr><td class="paramname">format</td><td>printf formatted string </td></tr>
  375. </table>
  376. </dd>
  377. </dl>
  378. </div>
  379. </div>
  380. <a class="anchor" id="ad6ed0024f33524ff5e96b473a18b44fd"></a>
  381. <div class="memitem">
  382. <div class="memproto">
  383. <table class="memname">
  384. <tr>
  385. <td class="memname">void logger </td>
  386. <td>(</td>
  387. <td class="paramtype"><a class="el" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a>&#160;</td>
  388. <td class="paramname"><em>verboselevel</em>, </td>
  389. </tr>
  390. <tr>
  391. <td class="paramkey"></td>
  392. <td></td>
  393. <td class="paramtype">const char *&#160;</td>
  394. <td class="paramname"><em>format</em>, </td>
  395. </tr>
  396. <tr>
  397. <td class="paramkey"></td>
  398. <td></td>
  399. <td class="paramtype">&#160;</td>
  400. <td class="paramname"><em>...</em>&#160;</td>
  401. </tr>
  402. <tr>
  403. <td></td>
  404. <td>)</td>
  405. <td></td><td></td>
  406. </tr>
  407. </table>
  408. </div><div class="memdoc">
  409. <p>prints the message to stdout </p>
  410. <dl class="params"><dt>Parameters</dt><dd>
  411. <table class="params">
  412. <tr><td class="paramname">verboselevel</td><td>minimum verbose level for output </td></tr>
  413. <tr><td class="paramname">format</td><td>printf formatted string </td></tr>
  414. </table>
  415. </dd>
  416. </dl>
  417. </div>
  418. </div>
  419. <a class="anchor" id="ab5a2104bf520b79d590c6ef11cdeeb02"></a>
  420. <div class="memitem">
  421. <div class="memproto">
  422. <table class="memname">
  423. <tr>
  424. <td class="memname">void logger_error </td>
  425. <td>(</td>
  426. <td class="paramtype">const char *&#160;</td>
  427. <td class="paramname"><em>format</em>, </td>
  428. </tr>
  429. <tr>
  430. <td class="paramkey"></td>
  431. <td></td>
  432. <td class="paramtype">&#160;</td>
  433. <td class="paramname"><em>...</em>&#160;</td>
  434. </tr>
  435. <tr>
  436. <td></td>
  437. <td>)</td>
  438. <td></td><td></td>
  439. </tr>
  440. </table>
  441. </div><div class="memdoc">
  442. <p>Outputs the printf like formatted message to stderr and colorizes it. </p>
  443. <dl class="params"><dt>Parameters</dt><dd>
  444. <table class="params">
  445. <tr><td class="paramname">format</td><td>printf formatted string </td></tr>
  446. </table>
  447. </dd>
  448. </dl>
  449. </div>
  450. </div>
  451. <a class="anchor" id="abd01f221b7a194e67bb39d88822c9772"></a>
  452. <div class="memitem">
  453. <div class="memproto">
  454. <table class="memname">
  455. <tr>
  456. <td class="memname">void logger_reset </td>
  457. <td>(</td>
  458. <td class="paramname"></td><td>)</td>
  459. <td></td>
  460. </tr>
  461. </table>
  462. </div><div class="memdoc">
  463. <p>Resets the logger to prevent the previous line being overdrawn. </p>
  464. <p>Call after custom printf </p>
  465. </div>
  466. </div>
  467. </div><!-- contents -->
  468. <!-- start footer part -->
  469. <hr class="footer"/><address class="footer"><small>
  470. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  471. <img class="footer" src="doxygen.png" alt="doxygen"/>
  472. </a> 1.8.10
  473. </small></address>
  474. </body>
  475. </html>