283 lines
54 KiB
HTML
283 lines
54 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.5"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>dl: dl/io/dl_log.h 源文件</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="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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">dl
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- 制作者 Doxygen 1.9.5 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>首页</span></a></li>
|
|
<li><a href="pages.html"><span>相关页面</span></a></li>
|
|
<li><a href="namespaces.html"><span>命名空间</span></a></li>
|
|
<li><a href="annotated.html"><span>类</span></a></li>
|
|
<li class="current"><a href="files.html"><span>文件</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>文件列表</span></a></li>
|
|
<li><a href="globals.html"><span>文件成员</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_17297ffb27ce571941f5fb5008f01a1f.html">dl</a></li><li class="navelem"><a class="el" href="dir_8618662f707661daa8368f9a64c30c2e.html">io</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">dl_log.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="dl__log_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <string></span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <iostream></span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <stack></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <array></span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include "<a class="code" href="dl__platform_8h.html">system/dl_platform.h</a>"</span></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#if (DL_PLATFORM == DL_PLATFORM_WIN32)</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include <stacktrace></span></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <source_location></span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <fmt/format.h></span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl.html">dl</a></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span>{</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1"> 30</a></span><span class="keyword">constexpr</span> std::array<std::string_view, 9> <a class="code hl_variable" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1">DL_LOG_SYSTEM_LEVLE_NAME</a> = {</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="stringliteral">"damage"</span>, <span class="stringliteral">"err"</span>, <span class="stringliteral">"warn"</span>, <span class="stringliteral">"notice"</span>, <span class="stringliteral">"msg"</span>, <span class="stringliteral">"info"</span>, <span class="stringliteral">"test"</span>, <span class="stringliteral">"pause"</span>,</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>};</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html"> 35</a></span><span class="keyword">class </span><a class="code hl_class" href="classdl_1_1_log_system.html">LogSystem</a></div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>{</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37"> 39</a></span> <span class="keyword">enum class</span> <a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a></div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> {</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a806bb06d54f268f1d2ce74bde5b48f34">DAMAGE</a>,</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37acd22bad976363fdd1bfbf6759fede482">ERR</a>,</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a32bd8a1db2275458673903bdb84cb277">WARN</a>,</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37aaa14599dc3fdfa9cc81a7c3c247b77b9">NOTICE</a>,</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a1b7ef95d69775316be10f7090f2d62fa">MSG</a>,</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a551b723eafd6a31d444fcb2f5920fbd3">INFO</a>,</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a033bd94b1168d7e4f0d644c3c95e35bf">TEST</a>,</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a291554596c183e837f0a6bec3767c891">PAUSE</a>,</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> };</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html"> 50</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">Setting</a></div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> {</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#ad7ea5eb41046686ef42d61b8e78df611"> 52</a></span> <a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> <a class="code hl_variable" href="structdl_1_1_log_system_1_1_setting.html#ad7ea5eb41046686ef42d61b8e78df611">_level</a> = <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a551b723eafd6a31d444fcb2f5920fbd3">Level::INFO</a>;</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#aff3dc6301a2e4c94f6d58a9c506db585"> 53</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structdl_1_1_log_system_1_1_setting.html#aff3dc6301a2e4c94f6d58a9c506db585">_bSourceLocation</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#ad0d66a0f936c9735ce01e87efd6fa0bd"> 54</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structdl_1_1_log_system_1_1_setting.html#ad0d66a0f936c9735ce01e87efd6fa0bd">_bTimeStamp</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#ad29f0f478f04a05225f4a07699281c6f"> 55</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structdl_1_1_log_system_1_1_setting.html#ad29f0f478f04a05225f4a07699281c6f">_bStackTrace</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> };</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a1d57af036590ec06bd24b39e939064e5"> 57</a></span> <a class="code hl_function" href="classdl_1_1_log_system.html#a1d57af036590ec06bd24b39e939064e5">LogSystem</a>();</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a4178db16c7c12d2192b950a17fa6fc37"> 60</a></span> <a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">Setting</a>& <a class="code hl_function" href="classdl_1_1_log_system.html#a4178db16c7c12d2192b950a17fa6fc37">GetSetting</a>()</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> {</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">return</span> _stackSetting.top();</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> }</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a0688621d703fc22741e095f97fb849b9"> 66</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_log_system.html#a0688621d703fc22741e095f97fb849b9">SetLevelLimit</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level) { _levelLimit = level; }</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a66c0457f978e5968065ce782b62b1a24"> 67</a></span> <a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> <a class="code hl_function" href="classdl_1_1_log_system.html#a66c0457f978e5968065ce782b62b1a24">GetLevelLimit</a>() { <span class="keywordflow">return</span> _levelLimit; }</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a1befb45df867771ae986096c62e0a7a7"> 70</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classdl_1_1_log_system.html#a1befb45df867771ae986096c62e0a7a7">IsLevelLimit</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> {</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> level > _levelLimit;</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a9bdfa8d92d18775f80e60305ed9beaca"> 76</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classdl_1_1_log_system.html#a9bdfa8d92d18775f80e60305ed9beaca">IsLevelMsgBox</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> {</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">return</span> level <= _levelMsgBox;</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> }</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ae7f791d7e98a3f483d687481e72296d2"> 82</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_log_system.html#ae7f791d7e98a3f483d687481e72296d2">Push</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">Setting</a>& setting)</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> _stackSetting.push(setting);</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a535f3fb7d923a03ef70e9b49f077a619"> 88</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_log_system.html#a535f3fb7d923a03ef70e9b49f077a619">PushLevel</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> {</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">Setting</a> setting = <a class="code hl_function" href="classdl_1_1_log_system.html#a4178db16c7c12d2192b950a17fa6fc37">GetSetting</a>();</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> setting.<a class="code hl_variable" href="structdl_1_1_log_system_1_1_setting.html#ad7ea5eb41046686ef42d61b8e78df611">_level</a> = level;</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> _stackSetting.push(setting);</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> }</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a131de73670d8dd8fc1683504878db458"> 96</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_log_system.html#a131de73670d8dd8fc1683504878db458">Pop</a>()</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> {</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> _stackSetting.pop();</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> }</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a7a9a592aee577d1b9b79074a12907afe"> 104</a></span> <span class="keyword">static</span> std::string_view <a class="code hl_function" href="classdl_1_1_log_system.html#a7a9a592aee577d1b9b79074a12907afe">Level2String</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> {</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">size_t</span> index = (size_t)level;</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">if</span> (index >= <a class="code hl_variable" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1">DL_LOG_SYSTEM_LEVLE_NAME</a>.size())</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">return</span> <span class="stringliteral">"NONE"</span>;</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1">DL_LOG_SYSTEM_LEVLE_NAME</a>[index];</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> }</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> std::stack<Setting> _stackSetting;</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> _levelLimit; <span class="comment">// 限制等级</span></div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> _levelMsgBox;<span class="comment">// 弹窗等级</span></div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span>};</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="keyword">extern</span> LogSystem* <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>;</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classdl_1_1_log_limit.html"> 118</a></span><span class="keyword">class </span><a class="code hl_class" href="classdl_1_1_log_limit.html">LogLimit</a></div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span>{</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classdl_1_1_log_limit.html#ad26afa2c29bdb0f153856a027ec33177"> 122</a></span> <a class="code hl_function" href="classdl_1_1_log_limit.html#ad26afa2c29bdb0f153856a027ec33177">LogLimit</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">LogSystem::Level</a> level = <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a806bb06d54f268f1d2ce74bde5b48f34">LogSystem::Level::DAMAGE</a>)</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> {</div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> _levelPre = <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-><a class="code hl_function" href="classdl_1_1_log_system.html#a66c0457f978e5968065ce782b62b1a24">GetLevelLimit</a>();</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-><a class="code hl_function" href="classdl_1_1_log_system.html#a0688621d703fc22741e095f97fb849b9">SetLevelLimit</a>(level);</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> }</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classdl_1_1_log_limit.html#a003ef41db94eb6ac39d096d8b623456b"> 127</a></span> <a class="code hl_function" href="classdl_1_1_log_limit.html#a003ef41db94eb6ac39d096d8b623456b">~LogLimit</a>()</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> {</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-><a class="code hl_function" href="classdl_1_1_log_system.html#a0688621d703fc22741e095f97fb849b9">SetLevelLimit</a>(_levelPre);</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">LogSystem::Level</a> _levelPre;</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span>};</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="namespacedl.html#a4be24a293bd1feedc6c35d1197d067a8"> 138</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a4be24a293bd1feedc6c35d1197d067a8">log_easy</a>(std::string_view str)</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span>{</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> std::cout << str << std::endl;</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span>}</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span><span class="preprocessor">#if (DL_PLATFORM == DL_PLATFORM_WIN32)</span></div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span><span class="comment">//void log_imp(std::string_view str, const std::source_location location = std::source_location::current());</span></div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="namespacedl.html#a03fd829ce8bc9d2cf5c2462520c6be0d"> 147</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a03fd829ce8bc9d2cf5c2462520c6be0d">log_pause0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="namespacedl.html#a4d59d44c488a8556063999d016695350"> 148</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a4d59d44c488a8556063999d016695350">log_test0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="namespacedl.html#ab89411a4ac99e1219623c97a9e144527"> 149</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#ab89411a4ac99e1219623c97a9e144527">log_info0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="namespacedl.html#a011a3dda1dd8a86c5776afd1d79020d9"> 150</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a011a3dda1dd8a86c5776afd1d79020d9">log_msg0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="namespacedl.html#a2270be26985a20e4dad3cc3cc2ea7cdb"> 151</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a2270be26985a20e4dad3cc3cc2ea7cdb">log_notice0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="namespacedl.html#a46f70fa1061fd655c0eabe2c55a1dd7b"> 152</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a46f70fa1061fd655c0eabe2c55a1dd7b">log_warn0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="namespacedl.html#adece4f3bf077e2bd3f1d35a793939184"> 153</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#adece4f3bf077e2bd3f1d35a793939184">log_err0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="namespacedl.html#af9f9f2f965ec4d4208551abd05704e20"> 154</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#af9f9f2f965ec4d4208551abd05704e20">log_damage0</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9"> 157</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(std::string_view str, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="namespacedl.html#aaff6450999f0d0667bf978ed0295414c"> 159</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#adece4f3bf077e2bd3f1d35a793939184">log_err0</a>(<span class="keyword">const</span> std::exception& e, <span class="keyword">const</span> std::source_location location = std::source_location::current());</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span><span class="preprocessor">#define log_(...) log(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span><span class="preprocessor">#define log_pause(...) log_pause0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span><span class="preprocessor">#define log_test(...) log_test0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span><span class="preprocessor">#define log_info(...) log_info0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span><span class="preprocessor">#define log_msg(...) log_msg0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span><span class="preprocessor">#define log_notice(...) log_notice0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="preprocessor">#define log_warn(...) log_warn0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span><span class="preprocessor">#define log_err(...) log_err0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span><span class="preprocessor">#define log_damage(...) log_damage0(fmt::format(__VA_ARGS__), std::source_location::current())</span></div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span><span class="preprocessor">#if (DL_PLATFORM == DL_PLATFORM_LINUX) || (DL_PLATFORM == DL_PLATFORM_ANDROID)</span></div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="namespacedl.html#a8843ce9798a658472dcb38895c8ee7c1"> 175</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(std::string_view str);</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"><a class="line" href="namespacedl.html#a7f2ee0d8f974c9b0bc289f09eea0a8d5"> 177</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a03fd829ce8bc9d2cf5c2462520c6be0d">log_pause0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"><a class="line" href="namespacedl.html#a7bf722d635c1d804fdb2a9da80ec852d"> 178</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a4d59d44c488a8556063999d016695350">log_test0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="namespacedl.html#a4c5e1018a926b2a6a58b68e21a39423b"> 179</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#ab89411a4ac99e1219623c97a9e144527">log_info0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="namespacedl.html#a9f789aeca1e47d6439024e90d09ec108"> 180</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a011a3dda1dd8a86c5776afd1d79020d9">log_msg0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="namespacedl.html#a1a093817c281eea7d2a5ab5e85effee9"> 181</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a2270be26985a20e4dad3cc3cc2ea7cdb">log_notice0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="namespacedl.html#ad83902ee9c946d8cf292223793565110"> 182</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a46f70fa1061fd655c0eabe2c55a1dd7b">log_warn0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="namespacedl.html#a5736181fa8266e3580e3a8cefa486bce"> 183</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#adece4f3bf077e2bd3f1d35a793939184">log_err0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="namespacedl.html#a1b547c086a1167e4425b2e0659daa168"> 184</a></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#af9f9f2f965ec4d4208551abd05704e20">log_damage0</a>(std::string_view str) { <a class="code hl_function" href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">log</a>(str); }</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="namespacedl.html#a4f8f3f23d815f9b0fb40e1162ed2d42d"> 187</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#adece4f3bf077e2bd3f1d35a793939184">log_err0</a>(<span class="keyword">const</span> std::exception& e);</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a91583a8f2cf65e8c793fee9181900907"> 189</a></span><span class="preprocessor">#define log_(...) log(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="dl__log_8h.html#aba10d52a2437ba054c567bd1251f1687"> 190</a></span><span class="preprocessor">#define log_pause(...) log_pause0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="dl__log_8h.html#aea1d36b143643ff03392dff21c698db5"> 191</a></span><span class="preprocessor">#define log_test(...) log_test0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="dl__log_8h.html#aa1cfe5444875c8eca0ea6f6993977d6d"> 192</a></span><span class="preprocessor">#define log_info(...) log_info0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a156fd6dffd62306e07b5b77739680688"> 193</a></span><span class="preprocessor">#define log_msg(...) log_msg0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a725275c5ac170bb8f873d63cad37b61f"> 194</a></span><span class="preprocessor">#define log_notice(...) log_notice0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a04af09851c431d178f16b24fa1aac1e9"> 195</a></span><span class="preprocessor">#define log_warn(...) log_warn0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="dl__log_8h.html#abc86a6b34614cb6484cdf935d9350abd"> 196</a></span><span class="preprocessor">#define log_err(...) log_err0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a7ee4d36745c3799c6d1c99ea082ee5db"> 197</a></span><span class="preprocessor">#define log_damage(...) log_damage0(fmt::format(__VA_ARGS__))</span></div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
|
|
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> </div>
|
|
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span>}</div>
|
|
<div class="ttc" id="aclassdl_1_1_log_limit_html"><div class="ttname"><a href="classdl_1_1_log_limit.html">dl::LogLimit</a></div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00118">dl_log.h:119</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_limit_html_a003ef41db94eb6ac39d096d8b623456b"><div class="ttname"><a href="classdl_1_1_log_limit.html#a003ef41db94eb6ac39d096d8b623456b">dl::LogLimit::~LogLimit</a></div><div class="ttdeci">~LogLimit()</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00127">dl_log.h:127</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_limit_html_ad26afa2c29bdb0f153856a027ec33177"><div class="ttname"><a href="classdl_1_1_log_limit.html#ad26afa2c29bdb0f153856a027ec33177">dl::LogLimit::LogLimit</a></div><div class="ttdeci">LogLimit(LogSystem::Level level=LogSystem::Level::DAMAGE)</div><div class="ttdoc">默认为最高等级,用于屏蔽消息输出</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00122">dl_log.h:122</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html"><div class="ttname"><a href="classdl_1_1_log_system.html">dl::LogSystem</a></div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00035">dl_log.h:36</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a0688621d703fc22741e095f97fb849b9"><div class="ttname"><a href="classdl_1_1_log_system.html#a0688621d703fc22741e095f97fb849b9">dl::LogSystem::SetLevelLimit</a></div><div class="ttdeci">void SetLevelLimit(Level level)</div><div class="ttdoc">设置日志输出等级(大于自己不输出)</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00066">dl_log.h:66</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a131de73670d8dd8fc1683504878db458"><div class="ttname"><a href="classdl_1_1_log_system.html#a131de73670d8dd8fc1683504878db458">dl::LogSystem::Pop</a></div><div class="ttdeci">void Pop()</div><div class="ttdoc">出栈设置</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00096">dl_log.h:96</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a1befb45df867771ae986096c62e0a7a7"><div class="ttname"><a href="classdl_1_1_log_system.html#a1befb45df867771ae986096c62e0a7a7">dl::LogSystem::IsLevelLimit</a></div><div class="ttdeci">bool IsLevelLimit(Level level)</div><div class="ttdoc">检查等级是否被限制输出</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00070">dl_log.h:70</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a1d57af036590ec06bd24b39e939064e5"><div class="ttname"><a href="classdl_1_1_log_system.html#a1d57af036590ec06bd24b39e939064e5">dl::LogSystem::LogSystem</a></div><div class="ttdeci">LogSystem()</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a4178db16c7c12d2192b950a17fa6fc37"><div class="ttname"><a href="classdl_1_1_log_system.html#a4178db16c7c12d2192b950a17fa6fc37">dl::LogSystem::GetSetting</a></div><div class="ttdeci">Setting & GetSetting()</div><div class="ttdoc">返回当前设置</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00060">dl_log.h:60</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a535f3fb7d923a03ef70e9b49f077a619"><div class="ttname"><a href="classdl_1_1_log_system.html#a535f3fb7d923a03ef70e9b49f077a619">dl::LogSystem::PushLevel</a></div><div class="ttdeci">void PushLevel(Level level)</div><div class="ttdoc">入栈设置</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00088">dl_log.h:88</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a66c0457f978e5968065ce782b62b1a24"><div class="ttname"><a href="classdl_1_1_log_system.html#a66c0457f978e5968065ce782b62b1a24">dl::LogSystem::GetLevelLimit</a></div><div class="ttdeci">Level GetLevelLimit()</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00067">dl_log.h:67</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a7a9a592aee577d1b9b79074a12907afe"><div class="ttname"><a href="classdl_1_1_log_system.html#a7a9a592aee577d1b9b79074a12907afe">dl::LogSystem::Level2String</a></div><div class="ttdeci">static std::string_view Level2String(Level level)</div><div class="ttdoc">日志等级转字符串</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00104">dl_log.h:104</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_a9bdfa8d92d18775f80e60305ed9beaca"><div class="ttname"><a href="classdl_1_1_log_system.html#a9bdfa8d92d18775f80e60305ed9beaca">dl::LogSystem::IsLevelMsgBox</a></div><div class="ttdeci">bool IsLevelMsgBox(Level level)</div><div class="ttdoc">检查等级是否可以弹窗(小于等于自己)</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00076">dl_log.h:76</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">dl::LogSystem::Level</a></div><div class="ttdeci">Level</div><div class="ttdoc">日志等级 越小越严重</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00039">dl_log.h:40</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37a033bd94b1168d7e4f0d644c3c95e35bf"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a033bd94b1168d7e4f0d644c3c95e35bf">dl::LogSystem::Level::TEST</a></div><div class="ttdeci">@ TEST</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37a1b7ef95d69775316be10f7090f2d62fa"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a1b7ef95d69775316be10f7090f2d62fa">dl::LogSystem::Level::MSG</a></div><div class="ttdeci">@ MSG</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37a291554596c183e837f0a6bec3767c891"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a291554596c183e837f0a6bec3767c891">dl::LogSystem::Level::PAUSE</a></div><div class="ttdeci">@ PAUSE</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37a32bd8a1db2275458673903bdb84cb277"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a32bd8a1db2275458673903bdb84cb277">dl::LogSystem::Level::WARN</a></div><div class="ttdeci">@ WARN</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37a551b723eafd6a31d444fcb2f5920fbd3"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a551b723eafd6a31d444fcb2f5920fbd3">dl::LogSystem::Level::INFO</a></div><div class="ttdeci">@ INFO</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37a806bb06d54f268f1d2ce74bde5b48f34"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a806bb06d54f268f1d2ce74bde5b48f34">dl::LogSystem::Level::DAMAGE</a></div><div class="ttdeci">@ DAMAGE</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37aaa14599dc3fdfa9cc81a7c3c247b77b9"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37aaa14599dc3fdfa9cc81a7c3c247b77b9">dl::LogSystem::Level::NOTICE</a></div><div class="ttdeci">@ NOTICE</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ab1bf7c6f38c373304054d7288a627f37acd22bad976363fdd1bfbf6759fede482"><div class="ttname"><a href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37acd22bad976363fdd1bfbf6759fede482">dl::LogSystem::Level::ERR</a></div><div class="ttdeci">@ ERR</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_log_system_html_ae7f791d7e98a3f483d687481e72296d2"><div class="ttname"><a href="classdl_1_1_log_system.html#ae7f791d7e98a3f483d687481e72296d2">dl::LogSystem::Push</a></div><div class="ttdeci">void Push(const Setting &setting)</div><div class="ttdoc">入栈设置</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00082">dl_log.h:82</a></div></div>
|
|
<div class="ttc" id="adl__platform_8h_html"><div class="ttname"><a href="dl__platform_8h.html">dl_platform.h</a></div><div class="ttdoc">平台宏</div></div>
|
|
<div class="ttc" id="anamespacedl_html"><div class="ttname"><a href="namespacedl.html">dl</a></div><div class="ttdef"><b>Definition:</b> <a href="dl__array2_8h_source.html#l00017">dl_array2.h:18</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_a011a3dda1dd8a86c5776afd1d79020d9"><div class="ttname"><a href="namespacedl.html#a011a3dda1dd8a86c5776afd1d79020d9">dl::log_msg0</a></div><div class="ttdeci">void log_msg0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a03fd829ce8bc9d2cf5c2462520c6be0d"><div class="ttname"><a href="namespacedl.html#a03fd829ce8bc9d2cf5c2462520c6be0d">dl::log_pause0</a></div><div class="ttdeci">void log_pause0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a2270be26985a20e4dad3cc3cc2ea7cdb"><div class="ttname"><a href="namespacedl.html#a2270be26985a20e4dad3cc3cc2ea7cdb">dl::log_notice0</a></div><div class="ttdeci">void log_notice0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a3890f3a90e743da1b3f9cd475218fdb1"><div class="ttname"><a href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1">dl::DL_LOG_SYSTEM_LEVLE_NAME</a></div><div class="ttdeci">constexpr std::array< std::string_view, 9 > DL_LOG_SYSTEM_LEVLE_NAME</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00030">dl_log.h:30</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_a46f70fa1061fd655c0eabe2c55a1dd7b"><div class="ttname"><a href="namespacedl.html#a46f70fa1061fd655c0eabe2c55a1dd7b">dl::log_warn0</a></div><div class="ttdeci">void log_warn0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a4be24a293bd1feedc6c35d1197d067a8"><div class="ttname"><a href="namespacedl.html#a4be24a293bd1feedc6c35d1197d067a8">dl::log_easy</a></div><div class="ttdeci">void log_easy(std::string_view str)</div><div class="ttdoc">输出日志</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00138">dl_log.h:138</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_a4d59d44c488a8556063999d016695350"><div class="ttname"><a href="namespacedl.html#a4d59d44c488a8556063999d016695350">dl::log_test0</a></div><div class="ttdeci">void log_test0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a62cc7ebcc4364286173b92601972eb3f"><div class="ttname"><a href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">dl::g_log</a></div><div class="ttdeci">LogSystem * g_log</div></div>
|
|
<div class="ttc" id="anamespacedl_html_a7731ef3eeb547d0d060ac998ee6a20a9"><div class="ttname"><a href="namespacedl.html#a7731ef3eeb547d0d060ac998ee6a20a9">dl::log</a></div><div class="ttdeci">void log(std::string_view str, const std::source_location location=std::source_location::current())</div><div class="ttdoc">以当前设置输出</div></div>
|
|
<div class="ttc" id="anamespacedl_html_ab89411a4ac99e1219623c97a9e144527"><div class="ttname"><a href="namespacedl.html#ab89411a4ac99e1219623c97a9e144527">dl::log_info0</a></div><div class="ttdeci">void log_info0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_adece4f3bf077e2bd3f1d35a793939184"><div class="ttname"><a href="namespacedl.html#adece4f3bf077e2bd3f1d35a793939184">dl::log_err0</a></div><div class="ttdeci">void log_err0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="anamespacedl_html_af9f9f2f965ec4d4208551abd05704e20"><div class="ttname"><a href="namespacedl.html#af9f9f2f965ec4d4208551abd05704e20">dl::log_damage0</a></div><div class="ttdeci">void log_damage0(std::string_view str, const std::source_location location=std::source_location::current())</div></div>
|
|
<div class="ttc" id="astructdl_1_1_log_system_1_1_setting_html"><div class="ttname"><a href="structdl_1_1_log_system_1_1_setting.html">dl::LogSystem::Setting</a></div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00050">dl_log.h:51</a></div></div>
|
|
<div class="ttc" id="astructdl_1_1_log_system_1_1_setting_html_ad0d66a0f936c9735ce01e87efd6fa0bd"><div class="ttname"><a href="structdl_1_1_log_system_1_1_setting.html#ad0d66a0f936c9735ce01e87efd6fa0bd">dl::LogSystem::Setting::_bTimeStamp</a></div><div class="ttdeci">bool _bTimeStamp</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00054">dl_log.h:54</a></div></div>
|
|
<div class="ttc" id="astructdl_1_1_log_system_1_1_setting_html_ad29f0f478f04a05225f4a07699281c6f"><div class="ttname"><a href="structdl_1_1_log_system_1_1_setting.html#ad29f0f478f04a05225f4a07699281c6f">dl::LogSystem::Setting::_bStackTrace</a></div><div class="ttdeci">bool _bStackTrace</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00055">dl_log.h:55</a></div></div>
|
|
<div class="ttc" id="astructdl_1_1_log_system_1_1_setting_html_ad7ea5eb41046686ef42d61b8e78df611"><div class="ttname"><a href="structdl_1_1_log_system_1_1_setting.html#ad7ea5eb41046686ef42d61b8e78df611">dl::LogSystem::Setting::_level</a></div><div class="ttdeci">Level _level</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00052">dl_log.h:52</a></div></div>
|
|
<div class="ttc" id="astructdl_1_1_log_system_1_1_setting_html_aff3dc6301a2e4c94f6d58a9c506db585"><div class="ttname"><a href="structdl_1_1_log_system_1_1_setting.html#aff3dc6301a2e4c94f6d58a9c506db585">dl::LogSystem::Setting::_bSourceLocation</a></div><div class="ttdeci">bool _bSourceLocation</div><div class="ttdef"><b>Definition:</b> <a href="dl__log_8h_source.html#l00053">dl_log.h:53</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|