logger_8h_source.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 Source File</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. </div><!-- top -->
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. <div class="header">
  82. <div class="headertitle">
  83. <div class="title">logger.h</div> </div>
  84. </div><!--header-->
  85. <div class="contents">
  86. <a href="logger_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
  87. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * logger.h</span></div>
  88. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
  89. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Created on: Feb 3, 2016</span></div>
  90. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Author: Philipp Hinz</span></div>
  91. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> */</span></div>
  92. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div>
  93. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef LOGGER_H_</span></div>
  94. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define LOGGER_H_</span></div>
  95. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
  96. <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// Logtypes for coloring</span></div>
  97. <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div>
  98. <div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823"> 13</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
  99. <div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a6e98ff471e3ce6c4ef2d75c37ee51837"> 14</a></span>&#160; <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a6e98ff471e3ce6c4ef2d75c37ee51837">LOG_INFO</a> = 0,</div>
  100. <div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a854a22c1c382f9b7a93bf8e556191c5f"> 15</a></span>&#160; <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a854a22c1c382f9b7a93bf8e556191c5f">LOG_CAN</a> = 1,</div>
  101. <div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a746c53b13e16f15d1d885f75efaf58b1"> 16</a></span>&#160; <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a746c53b13e16f15d1d885f75efaf58b1">LOG_OK</a> = 2,</div>
  102. <div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823ac8041ffa22bc823d4726701cdb13fc13"> 17</a></span>&#160; <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823ac8041ffa22bc823d4726701cdb13fc13">LOG_WARN</a> = 3,</div>
  103. <div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a230506cce5c68c3bac5a821c42ed3473"> 18</a></span>&#160; <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a> = 4,</div>
  104. <div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a1ee7c46e5fb6cad577d81e275a4f8218"> 19</a></span>&#160; <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823a1ee7c46e5fb6cad577d81e275a4f8218">LOG_ERRORC</a> = 5,</div>
  105. <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;} <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a>;</div>
  106. <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div>
  107. <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">// verbosity levels</span></div>
  108. <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
  109. <div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131"> 24</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
  110. <div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131afa973d27e66919a26910ccef33a3606a"> 25</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131afa973d27e66919a26910ccef33a3606a">V_NONE</a> = 0,</div>
  111. <div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a8470d917f387c308f571d2f370c238a3"> 26</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a8470d917f387c308f571d2f370c238a3">V_BASIC</a> = 1,</div>
  112. <div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131ac26291e5906a8e13146ec8dc56a0869a"> 27</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131ac26291e5906a8e13146ec8dc56a0869a">V_BREW</a> = 2,</div>
  113. <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a9a36496e8d624d5ea70b3f86bc2c0bed"> 28</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a9a36496e8d624d5ea70b3f86bc2c0bed">V_HAL</a> = 3,</div>
  114. <div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131acf3ff5c46ec466c2d7438651b46cc17c"> 29</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131acf3ff5c46ec466c2d7438651b46cc17c">V_SQL</a> = 4,</div>
  115. <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a6af331195d8ce87720090a3eece459e4"> 30</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a6af331195d8ce87720090a3eece459e4">V_STRIPE</a> = 5,</div>
  116. <div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a86acf22e226ebf319ce306ea1af2d95a"> 31</a></span>&#160; <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a86acf22e226ebf319ce306ea1af2d95a">V_SPI</a> = 6,</div>
  117. <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;} <a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a>;</div>
  118. <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
  119. <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
  120. <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">// Colors \o/</span></div>
  121. <div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="logger_8h.html#acdbdbd1e0c5422f3d1f7aa3960957e0a"> 36</a></span>&#160;<span class="preprocessor">#define USE_COLORS</span></div>
  122. <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
  123. <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">// List of escape sequences http://ascii-table.com/ansi-escape-sequences.php</span></div>
  124. <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
  125. <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#ifdef USE_COLORS</span></div>
  126. <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="logger_8h.html#a137aa83ec74421d226a90c92ec032ac9"> 41</a></span>&#160;<span class="preprocessor">#define KNRM &quot;\x1B[0m&quot;</span></div>
  127. <div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="logger_8h.html#a66290957baed5df3930ada4cb8caccf1"> 42</a></span>&#160;<span class="preprocessor">#define KRED &quot;\x1B[31m&quot;</span></div>
  128. <div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="logger_8h.html#ac081c83b067273757f7a2e54a5957d41"> 43</a></span>&#160;<span class="preprocessor">#define KGRN &quot;\x1B[32m&quot;</span></div>
  129. <div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="logger_8h.html#a897b10d246533c95ba86cb79f92e465a"> 44</a></span>&#160;<span class="preprocessor">#define KYEL &quot;\x1B[33m&quot;</span></div>
  130. <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="logger_8h.html#a3f838f2fc3a9a3b434be606fc908964b"> 45</a></span>&#160;<span class="preprocessor">#define KBLU &quot;\x1B[34m&quot;</span></div>
  131. <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="logger_8h.html#a6825f05d3b9d619d91d79d0ef18bb8b2"> 46</a></span>&#160;<span class="preprocessor">#define KMAG &quot;\x1B[35m&quot;</span></div>
  132. <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="logger_8h.html#a32036c94dbb166a3f874b7efc169841f"> 47</a></span>&#160;<span class="preprocessor">#define KCYN &quot;\x1B[36m&quot;</span></div>
  133. <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="logger_8h.html#af0036c8022c9980079ab17e5c87fd478"> 48</a></span>&#160;<span class="preprocessor">#define KWHT &quot;\x1B[37m&quot;</span></div>
  134. <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#else</span></div>
  135. <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#define KNRM</span></div>
  136. <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#define KRED</span></div>
  137. <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#define KGRN</span></div>
  138. <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#define KYEL</span></div>
  139. <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#define KBLU</span></div>
  140. <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#define KMAG</span></div>
  141. <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#define KCYN</span></div>
  142. <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#define KWHT</span></div>
  143. <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="preprocessor">#endif</span></div>
  144. <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
  145. <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="logger_8h.html#ae39a97a19b2e372929dabdc0e3822910"> 60</a></span>&#160;<span class="preprocessor">#define CLEARLINE &quot;\x1B[100D\x1B[1A\x1B[K&quot;</span></div>
  146. <div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="logger_8h.html#a815022697da1d2d7744ff178e940078c"> 61</a></span>&#160;<span class="preprocessor">#define KBOLD &quot;\x1B[1m&quot;</span></div>
  147. <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
  148. <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logger_8h.html#ab5a2104bf520b79d590c6ef11cdeeb02">logger_error</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* format, ... );</div>
  149. <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logger_8h.html#abd01f221b7a194e67bb39d88822c9772">logger_reset</a>();</div>
  150. <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logger_8h.html#a1f2dbdf600d66c1c1bcc820d0282d132">logger</a>(<a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a> verboselevel, <a class="code" href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a> logtype, <span class="keyword">const</span> <span class="keywordtype">char</span>* format, ... );</div>
  151. <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logger_8h.html#a1f2dbdf600d66c1c1bcc820d0282d132">logger</a>(<a class="code" href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a> verboselevel, <span class="keyword">const</span> <span class="keywordtype">char</span>* format, ... );</div>
  152. <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
  153. <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LOGGER_H_ */</span><span class="preprocessor"></span></div>
  154. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131afa973d27e66919a26910ccef33a3606a"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131afa973d27e66919a26910ccef33a3606a">V_NONE</a></div><div class="ttdef"><b>Definition:</b> logger.h:25</div></div>
  155. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131a6af331195d8ce87720090a3eece459e4"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a6af331195d8ce87720090a3eece459e4">V_STRIPE</a></div><div class="ttdef"><b>Definition:</b> logger.h:30</div></div>
  156. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823a1ee7c46e5fb6cad577d81e275a4f8218"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823a1ee7c46e5fb6cad577d81e275a4f8218">LOG_ERRORC</a></div><div class="ttdef"><b>Definition:</b> logger.h:19</div></div>
  157. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823a746c53b13e16f15d1d885f75efaf58b1"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823a746c53b13e16f15d1d885f75efaf58b1">LOG_OK</a></div><div class="ttdef"><b>Definition:</b> logger.h:16</div></div>
  158. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823">logger_type_t</a></div><div class="ttdeci">logger_type_t</div><div class="ttdef"><b>Definition:</b> logger.h:13</div></div>
  159. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131a8470d917f387c308f571d2f370c238a3"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a8470d917f387c308f571d2f370c238a3">V_BASIC</a></div><div class="ttdef"><b>Definition:</b> logger.h:26</div></div>
  160. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823a854a22c1c382f9b7a93bf8e556191c5f"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823a854a22c1c382f9b7a93bf8e556191c5f">LOG_CAN</a></div><div class="ttdef"><b>Definition:</b> logger.h:15</div></div>
  161. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131acf3ff5c46ec466c2d7438651b46cc17c"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131acf3ff5c46ec466c2d7438651b46cc17c">V_SQL</a></div><div class="ttdef"><b>Definition:</b> logger.h:29</div></div>
  162. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131ac26291e5906a8e13146ec8dc56a0869a"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131ac26291e5906a8e13146ec8dc56a0869a">V_BREW</a></div><div class="ttdef"><b>Definition:</b> logger.h:27</div></div>
  163. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131">logger_verbose_t</a></div><div class="ttdeci">logger_verbose_t</div><div class="ttdef"><b>Definition:</b> logger.h:24</div></div>
  164. <div class="ttc" id="logger_8h_html_a1f2dbdf600d66c1c1bcc820d0282d132"><div class="ttname"><a href="logger_8h.html#a1f2dbdf600d66c1c1bcc820d0282d132">logger</a></div><div class="ttdeci">void logger(logger_verbose_t verboselevel, logger_type_t logtype, const char *format,...)</div><div class="ttdoc">prints the message to stdout and formats it </div><div class="ttdef"><b>Definition:</b> logger.cpp:69</div></div>
  165. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131a86acf22e226ebf319ce306ea1af2d95a"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a86acf22e226ebf319ce306ea1af2d95a">V_SPI</a></div><div class="ttdef"><b>Definition:</b> logger.h:31</div></div>
  166. <div class="ttc" id="logger_8h_html_ab5a2104bf520b79d590c6ef11cdeeb02"><div class="ttname"><a href="logger_8h.html#ab5a2104bf520b79d590c6ef11cdeeb02">logger_error</a></div><div class="ttdeci">void logger_error(const char *format,...)</div><div class="ttdoc">Outputs the printf like formatted message to stderr and colorizes it. </div><div class="ttdef"><b>Definition:</b> logger.cpp:38</div></div>
  167. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823a6e98ff471e3ce6c4ef2d75c37ee51837"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823a6e98ff471e3ce6c4ef2d75c37ee51837">LOG_INFO</a></div><div class="ttdef"><b>Definition:</b> logger.h:14</div></div>
  168. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823ac8041ffa22bc823d4726701cdb13fc13"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823ac8041ffa22bc823d4726701cdb13fc13">LOG_WARN</a></div><div class="ttdef"><b>Definition:</b> logger.h:17</div></div>
  169. <div class="ttc" id="logger_8h_html_abd01f221b7a194e67bb39d88822c9772"><div class="ttname"><a href="logger_8h.html#abd01f221b7a194e67bb39d88822c9772">logger_reset</a></div><div class="ttdeci">void logger_reset()</div><div class="ttdoc">Resets the logger to prevent the previous line being overdrawn. </div><div class="ttdef"><b>Definition:</b> logger.cpp:58</div></div>
  170. <div class="ttc" id="logger_8h_html_a60cbc432422370d29ed1b783be884823a230506cce5c68c3bac5a821c42ed3473"><div class="ttname"><a href="logger_8h.html#a60cbc432422370d29ed1b783be884823a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a></div><div class="ttdef"><b>Definition:</b> logger.h:18</div></div>
  171. <div class="ttc" id="logger_8h_html_a1cfb4eb1363ea2e4d18f9052a7a98131a9a36496e8d624d5ea70b3f86bc2c0bed"><div class="ttname"><a href="logger_8h.html#a1cfb4eb1363ea2e4d18f9052a7a98131a9a36496e8d624d5ea70b3f86bc2c0bed">V_HAL</a></div><div class="ttdef"><b>Definition:</b> logger.h:28</div></div>
  172. </div><!-- fragment --></div><!-- contents -->
  173. <!-- start footer part -->
  174. <hr class="footer"/><address class="footer"><small>
  175. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  176. <img class="footer" src="doxygen.png" alt="doxygen"/>
  177. </a> 1.8.10
  178. </small></address>
  179. </body>
  180. </html>