153 lines
49 KiB
HTML
153 lines
49 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>Kinetis Bootloader Host: Logging.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Kinetis Bootloader Host
|
|
 <span id="projectnumber">2.0.0</span>
|
|
</div>
|
|
<div id="projectbrief">Host Tools for Kinetis devices</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Introduction</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){initNavTree('src_2blfwk_2_logging_8h_source.html','');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">src/blfwk/Logging.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2013-14, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#if !defined(_Logging_h_)</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define _Logging_h_</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <assert.h></span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <stdarg.h></span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <fstream></span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">class </span><a class="code" href="group__logging.html#class_logger">Logger</a></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381"> 75</a></span>  <span class="keyword">enum</span> <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381aca09a23920b7567780c73d5e6ef30568"> 77</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381aca09a23920b7567780c73d5e6ef30568">kUrgent</a> = 0, </div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a2c6a6e74a8a150cba779960062d126c0"> 78</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a2c6a6e74a8a150cba779960062d126c0">kJson</a>, </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a30bcc9bfa9b1cd8f269c6763287209cc"> 79</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a30bcc9bfa9b1cd8f269c6763287209cc">kError</a>, </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a8e3ed7030f92b6542e5354e937f2e0ee"> 80</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a8e3ed7030f92b6542e5354e937f2e0ee">kWarning</a>, </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec"> 81</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec">kInfo</a>, </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a0e22aade4d30c09d021b81f88e422d59"> 82</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a0e22aade4d30c09d021b81f88e422d59">kInfo2</a>, </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381abb93ac9bb74b3ce94a909b7362db37b4"> 83</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381abb93ac9bb74b3ce94a909b7362db37b4">kDebug</a>, </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a7059bc37726a537e725116d79d149cb3"> 84</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a7059bc37726a537e725116d79d149cb3">kDebug2</a>, </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ade1be3a5625f4037711f67c7064905d2"> 85</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ade1be3a5625f4037711f67c7064905d2">kInfo1</a> = <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec">kInfo</a>, </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a894c8bec70d9093570638d698983d86f"> 86</a></span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a894c8bec70d9093570638d698983d86f">kDebug1</a> = <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381abb93ac9bb74b3ce94a909b7362db37b4">kDebug</a> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  };</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="group__logging.html#abc41bfb031d896170c7675fa96a6b30c"> 91</a></span>  <a class="code" href="group__logging.html#abc41bfb031d896170c7675fa96a6b30c">Logger</a>()</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  : <a class="code" href="group__logging.html#a1cae1fe08a7e386fd0539f61658d3a1f">m_filter</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec">kInfo</a>)</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  , <a class="code" href="group__logging.html#a02dcc6a005e650891bbfb8c76e590185">m_level</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec">kInfo</a>)</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="group__logging.html#ae93f62ca3e47716b7120acb032a260f3"> 98</a></span>  <span class="keyword">virtual</span> <a class="code" href="group__logging.html#ae93f62ca3e47716b7120acb032a260f3">~Logger</a>() {}</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a86a9875a4e4aae6670f16237e651ba3a">setFilterLevel</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> level) { <a class="code" href="group__logging.html#a1cae1fe08a7e386fd0539f61658d3a1f">m_filter</a> = level; }</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="group__logging.html#a65f0668007317623100b0eac42ae6796"> 104</a></span>  <span class="keyword">inline</span> <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> <a class="code" href="group__logging.html#a65f0668007317623100b0eac42ae6796">getFilterLevel</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__logging.html#a1cae1fe08a7e386fd0539f61658d3a1f">m_filter</a>; }</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__logging.html#a2fcf77f7190217a3a277f75196cf4c0e"> 106</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a2fcf77f7190217a3a277f75196cf4c0e">setOutputLevel</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> level) { <a class="code" href="group__logging.html#a02dcc6a005e650891bbfb8c76e590185">m_level</a> = level; }</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="group__logging.html#a9cb967d830ff2cff918ce4eb67154301"> 108</a></span>  <span class="keyword">inline</span> <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> <a class="code" href="group__logging.html#a9cb967d830ff2cff918ce4eb67154301">getOutputLevel</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__logging.html#a02dcc6a005e650891bbfb8c76e590185">m_level</a>; }</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="group__logging.html#a4e0a3c00612edfa447671831c8857e94"> 117</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e0a3c00612edfa447671831c8857e94">log</a>(<span class="keyword">const</span> std::string &msg) { <a class="code" href="group__logging.html#a4e0a3c00612edfa447671831c8857e94">log</a>(msg.c_str()); }</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__logging.html#a880f92a9fb0a790e947578b043d73cb9"> 122</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a880f92a9fb0a790e947578b043d73cb9">log</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> level, <span class="keyword">const</span> std::string &msg) { <a class="code" href="group__logging.html#a880f92a9fb0a790e947578b043d73cb9">log</a>(level, msg.c_str()); }</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_list args);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_list args);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> <a class="code" href="group__logging.html#a1cae1fe08a7e386fd0539f61658d3a1f">m_filter</a>; </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">log_level_t</a> <a class="code" href="group__logging.html#a02dcc6a005e650891bbfb8c76e590185">m_level</a>; </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a67959f43a5ad97a4141eaad27a513f4a">_log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *msg) = 0;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> };</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">class </span><a class="code" href="group__logging.html#class_log">Log</a></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__logging.html#class_logger">Logger</a> *getLogger() { <span class="keywordflow">return</span> s_logger; }</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="group__logging.html#ad2ceb2fdb51b4dbc4baef0691bdda182"> 160</a></span>  <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#ad2ceb2fdb51b4dbc4baef0691bdda182">setLogger</a>(<a class="code" href="group__logging.html#class_logger">Logger</a> *logger) { s_logger = logger; }</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<span class="keyword">const</span> std::string &msg);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">Logger::log_level_t</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">Logger::log_level_t</a> level, <span class="keyword">const</span> std::string &msg);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> urgent(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> json(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> error(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> warning(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> info(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> info2(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> debug(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> debug2(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); </div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">static</span> <a class="code" href="group__logging.html#class_logger">Logger</a> *s_logger; </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keyword">class </span><a class="code" href="class_log_1_1_set_output_level.html">SetOutputLevel</a></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="class_log_1_1_set_output_level.html#af42c4c02b1ed68d344fdf21a417acf66"> 222</a></span>  <a class="code" href="class_log_1_1_set_output_level.html#af42c4c02b1ed68d344fdf21a417acf66">SetOutputLevel</a>(<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">Logger::log_level_t</a> level)</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  : m_logger(<a class="code" href="group__logging.html#class_log">Log</a>::getLogger())</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  , m_saved(<a class="code" href="group__logging.html#class_logger">Logger</a>::<a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec">kInfo</a>)</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  {</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  assert(m_logger);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  m_saved = m_logger->getOutputLevel();</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  m_logger->setOutputLevel(level);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="class_log_1_1_set_output_level.html#a7a6868510087c10610022dabcab27f55"> 235</a></span>  <a class="code" href="class_log_1_1_set_output_level.html#a7a6868510087c10610022dabcab27f55">SetOutputLevel</a>(<a class="code" href="group__logging.html#class_logger">Logger</a> *logger, <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">Logger::log_level_t</a> level)</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  : m_logger(logger)</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  , m_saved(logger-><a class="code" href="group__logging.html#a9cb967d830ff2cff918ce4eb67154301">getOutputLevel</a>())</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  {</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  assert(m_logger);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  m_logger->setOutputLevel(level);</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  }</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="class_log_1_1_set_output_level.html#add93dff7c0b5c79cf5a167617128402d"> 246</a></span>  <a class="code" href="class_log_1_1_set_output_level.html#add93dff7c0b5c79cf5a167617128402d">~SetOutputLevel</a>() { m_logger->setOutputLevel(m_saved); }</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="group__logging.html#class_logger">Logger</a> *m_logger; </div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">Logger::log_level_t</a> m_saved; </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  };</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> };</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="keyword">class </span><a class="code" href="group__logging.html#class_stdout_logger">StdoutLogger</a> : <span class="keyword">public</span> <a class="code" href="group__logging.html#class_logger">Logger</a></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> {</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a67959f43a5ad97a4141eaad27a513f4a">_log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *msg);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> };</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="group__logging.html"> 266</a></span> <span class="keyword">class </span><a class="code" href="group__logging.html#class_file_logger">FileLogger</a> : <span class="keyword">public</span> <a class="code" href="group__logging.html#class_logger">Logger</a></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> {</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="group__logging.html#class_file_logger">FileLogger</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file_path);</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  ~<a class="code" href="group__logging.html#class_file_logger">FileLogger</a>();</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logging.html#a67959f43a5ad97a4141eaad27a513f4a">_log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *msg);</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="group__logging.html#a2cf2630d046475330389f0b5f69cadf7"> 277</a></span>  <span class="keyword">const</span> std::string <a class="code" href="group__logging.html#a2cf2630d046475330389f0b5f69cadf7">m_file_path</a>;</div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="group__logging.html#a768894cc54790e18e42bfb567c6e4910"> 279</a></span>  std::ofstream <a class="code" href="group__logging.html#a768894cc54790e18e42bfb567c6e4910">m_logFile</a>;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> };</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="preprocessor">#endif // _Logging_h_</span></div><div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ae2dae72bbbe478b4ece96ee72ce613ec">Logger::kInfo</a></div><div class="ttdoc">The normal log level, for status messages. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:81</div></div>
|
|
<div class="ttc" id="group__logging_html_ae93f62ca3e47716b7120acb032a260f3"><div class="ttname"><a href="group__logging.html#ae93f62ca3e47716b7120acb032a260f3">Logger::~Logger</a></div><div class="ttdeci">virtual ~Logger()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:98</div></div>
|
|
<div class="ttc" id="class_log_1_1_set_output_level_html_af42c4c02b1ed68d344fdf21a417acf66"><div class="ttname"><a href="class_log_1_1_set_output_level.html#af42c4c02b1ed68d344fdf21a417acf66">Log::SetOutputLevel::SetOutputLevel</a></div><div class="ttdeci">SetOutputLevel(Logger::log_level_t level)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:222</div></div>
|
|
<div class="ttc" id="group__logging_html_a65f0668007317623100b0eac42ae6796"><div class="ttname"><a href="group__logging.html#a65f0668007317623100b0eac42ae6796">Logger::getFilterLevel</a></div><div class="ttdeci">log_level_t getFilterLevel() const </div><div class="ttdoc">Returns the current logging filter level. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:104</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381a30bcc9bfa9b1cd8f269c6763287209cc"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a30bcc9bfa9b1cd8f269c6763287209cc">Logger::kError</a></div><div class="ttdoc">For fatal error messages. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:79</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381abb93ac9bb74b3ce94a909b7362db37b4"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381abb93ac9bb74b3ce94a909b7362db37b4">Logger::kDebug</a></div><div class="ttdoc">For internal reporting. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:83</div></div>
|
|
<div class="ttc" id="group__logging_html_ad2ceb2fdb51b4dbc4baef0691bdda182"><div class="ttname"><a href="group__logging.html#ad2ceb2fdb51b4dbc4baef0691bdda182">Log::setLogger</a></div><div class="ttdeci">static void setLogger(Logger *logger)</div><div class="ttdoc">Sets the global logger singleton instance. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:160</div></div>
|
|
<div class="ttc" id="group__logging_html_a768894cc54790e18e42bfb567c6e4910"><div class="ttname"><a href="group__logging.html#a768894cc54790e18e42bfb567c6e4910">FileLogger::m_logFile</a></div><div class="ttdeci">std::ofstream m_logFile</div><div class="ttdoc">The name of the file, including the path, to log to. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:279</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381a894c8bec70d9093570638d698983d86f"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a894c8bec70d9093570638d698983d86f">Logger::kDebug1</a></div><div class="ttdoc">Alias for kDebug. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:86</div></div>
|
|
<div class="ttc" id="group__logging_html_a02dcc6a005e650891bbfb8c76e590185"><div class="ttname"><a href="group__logging.html#a02dcc6a005e650891bbfb8c76e590185">Logger::m_level</a></div><div class="ttdeci">log_level_t m_level</div><div class="ttdoc">The current log output level. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:102</div></div>
|
|
<div class="ttc" id="group__logging_html_a880f92a9fb0a790e947578b043d73cb9"><div class="ttname"><a href="group__logging.html#a880f92a9fb0a790e947578b043d73cb9">Logger::log</a></div><div class="ttdeci">virtual void log(log_level_t level, const std::string &msg)</div><div class="ttdoc">Log a string output at a specific output level. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:122</div></div>
|
|
<div class="ttc" id="class_log_1_1_set_output_level_html_a7a6868510087c10610022dabcab27f55"><div class="ttname"><a href="class_log_1_1_set_output_level.html#a7a6868510087c10610022dabcab27f55">Log::SetOutputLevel::SetOutputLevel</a></div><div class="ttdeci">SetOutputLevel(Logger *logger, Logger::log_level_t level)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:235</div></div>
|
|
<div class="ttc" id="group__logging_html_a9cb967d830ff2cff918ce4eb67154301"><div class="ttname"><a href="group__logging.html#a9cb967d830ff2cff918ce4eb67154301">Logger::getOutputLevel</a></div><div class="ttdeci">log_level_t getOutputLevel() const </div><div class="ttdoc">Returns the current logging output level. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:108</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381ade1be3a5625f4037711f67c7064905d2"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381ade1be3a5625f4037711f67c7064905d2">Logger::kInfo1</a></div><div class="ttdoc">Alias for kInfo. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:85</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381a2c6a6e74a8a150cba779960062d126c0"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a2c6a6e74a8a150cba779960062d126c0">Logger::kJson</a></div><div class="ttdoc">For machine language output only. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:78</div></div>
|
|
<div class="ttc" id="group__logging_html_a86a9875a4e4aae6670f16237e651ba3a"><div class="ttname"><a href="group__logging.html#a86a9875a4e4aae6670f16237e651ba3a">Logger::setFilterLevel</a></div><div class="ttdeci">void setFilterLevel(log_level_t level)</div><div class="ttdoc">Changes the logging level to level. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:72</div></div>
|
|
<div class="ttc" id="class_log_1_1_set_output_level_html_add93dff7c0b5c79cf5a167617128402d"><div class="ttname"><a href="class_log_1_1_set_output_level.html#add93dff7c0b5c79cf5a167617128402d">Log::SetOutputLevel::~SetOutputLevel</a></div><div class="ttdeci">~SetOutputLevel()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:246</div></div>
|
|
<div class="ttc" id="group__logging_html_a4e0a3c00612edfa447671831c8857e94"><div class="ttname"><a href="group__logging.html#a4e0a3c00612edfa447671831c8857e94">Logger::log</a></div><div class="ttdeci">virtual void log(const std::string &msg)</div><div class="ttdoc">Log a string object. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:117</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381aca09a23920b7567780c73d5e6ef30568"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381aca09a23920b7567780c73d5e6ef30568">Logger::kUrgent</a></div><div class="ttdoc">The lowest level, for messages that must always be logged. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:77</div></div>
|
|
<div class="ttc" id="group__logging_html_class_log"><div class="ttname"><a href="group__logging.html#class_log">Log</a></div><div class="ttdoc">Wraps a set of static functions for easy global logging access. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:122</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381a0e22aade4d30c09d021b81f88e422d59"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a0e22aade4d30c09d021b81f88e422d59">Logger::kInfo2</a></div><div class="ttdoc">For verbose status messages. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:82</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381a8e3ed7030f92b6542e5354e937f2e0ee"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a8e3ed7030f92b6542e5354e937f2e0ee">Logger::kWarning</a></div><div class="ttdoc">For non-fatal warning messages. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:80</div></div>
|
|
<div class="ttc" id="group__logging_html_a4e63cbc1d6d8f374afe1d3e12b5f5842"><div class="ttname"><a href="group__logging.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">Logger::log</a></div><div class="ttdeci">virtual void log(const char *fmt,...)</div><div class="ttdoc">Log with format. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.cpp:16</div></div>
|
|
<div class="ttc" id="group__logging_html_a2fcf77f7190217a3a277f75196cf4c0e"><div class="ttname"><a href="group__logging.html#a2fcf77f7190217a3a277f75196cf4c0e">Logger::setOutputLevel</a></div><div class="ttdeci">void setOutputLevel(log_level_t level)</div><div class="ttdoc">Changes the logging output level to level. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:106</div></div>
|
|
<div class="ttc" id="group__logging_html_a2cf2630d046475330389f0b5f69cadf7"><div class="ttname"><a href="group__logging.html#a2cf2630d046475330389f0b5f69cadf7">FileLogger::m_file_path</a></div><div class="ttdeci">const std::string m_file_path</div><div class="ttdoc">The name of the file, including the path, to log to. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:277</div></div>
|
|
<div class="ttc" id="group__logging_html_abc41bfb031d896170c7675fa96a6b30c"><div class="ttname"><a href="group__logging.html#abc41bfb031d896170c7675fa96a6b30c">Logger::Logger</a></div><div class="ttdeci">Logger()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:91</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381a7059bc37726a537e725116d79d149cb3"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381a7059bc37726a537e725116d79d149cb3">Logger::kDebug2</a></div><div class="ttdoc">Highest log level; verbose debug logging. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:84</div></div>
|
|
<div class="ttc" id="group__logging_html_a1cae1fe08a7e386fd0539f61658d3a1f"><div class="ttname"><a href="group__logging.html#a1cae1fe08a7e386fd0539f61658d3a1f">Logger::m_filter</a></div><div class="ttdeci">log_level_t m_filter</div><div class="ttdoc">The current logging filter level. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:101</div></div>
|
|
<div class="ttc" id="group__logging_html_a5209ca5ee1a2a8181287485e950cf381"><div class="ttname"><a href="group__logging.html#a5209ca5ee1a2a8181287485e950cf381">Logger::log_level_t</a></div><div class="ttdeci">log_level_t</div><div class="ttdoc">Logging levels. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:48</div></div>
|
|
<div class="ttc" id="group__logging_html_a67959f43a5ad97a4141eaad27a513f4a"><div class="ttname"><a href="group__logging.html#a67959f43a5ad97a4141eaad27a513f4a">Logger::_log</a></div><div class="ttdeci">virtual void _log(const char *msg)=0</div><div class="ttdoc">The base pure virtual logging function implemented by subclasses. </div></div>
|
|
<div class="ttc" id="group__logging_html_class_stdout_logger"><div class="ttname"><a href="group__logging.html#class_stdout_logger">StdoutLogger</a></div><div class="ttdoc">Simple logger that writes to stdout. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:212</div></div>
|
|
<div class="ttc" id="class_log_1_1_set_output_level_html"><div class="ttname"><a href="class_log_1_1_set_output_level.html">Log::SetOutputLevel</a></div><div class="ttdoc">Utility class to temporarily change the logging output level. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:171</div></div>
|
|
<div class="ttc" id="group__logging_html_class_file_logger"><div class="ttname"><a href="group__logging.html#class_file_logger">FileLogger</a></div><div class="ttdoc">Simple logger that writes to a file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Logging.h:266</div></div>
|
|
<div class="ttc" id="group__logging_html_class_logger"><div class="ttname"><a href="group__logging.html#class_logger">Logger</a></div><div class="ttdoc">Base logger class. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/Logging.h:44</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80fb9e53c172a775cab667063273d0e3.html">blfwk</a></li><li class="navelem"><b>Logging.h</b></li>
|
|
<li class="footer">Generated on Mon Mar 7 2016 16:49:50 for Kinetis Bootloader Host by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|