Files
dl/document/html/dl__log_8h_source.html
T
2026-09-16 14:07:40 +08:00

412 lines
69 KiB
HTML
Vendored

<!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.13.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>dl: D:/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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.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.13.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','搜索',false);
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<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 id="doc-content">
<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 &lt;string&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &lt;stack&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &lt;array&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &quot;<a class="code" href="dl__platform_8h.html">system/dl_platform.h</a>&quot;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#if DL_PLATFORM == DL_PLATFORM_WIN32</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;stacktrace&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;source_location&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452"> 25</a></span><span class="preprocessor">#define DL_SOURCE_LOCATION std::source_location location = std::source_location::current()</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="dl__log_8h.html#af75486d88b45e85779c49878136757d6"> 26</a></span><span class="preprocessor">#define DL_SOURCE_LOCATION_IMP std::source_location location</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a72cc0235b77b72bdcf6a51cae1de63ad"> 27</a></span><span class="preprocessor">#define DL_SOURCE_LOCATION_CALL std::source_location::current()</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a34bac667ddab641b1e2aba77121643fd"> 28</a></span><span class="preprocessor">#define DL_SOURCE_LOCATION_FORWARD location</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#define DL_SOURCE_LOCATION const char* file = __FILE__, int line = __LINE__</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#define DL_SOURCE_LOCATION_IMP const char* file, int line</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#define DL_SOURCE_LOCATION_CALL __FILE__, __LINE__</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#define DL_SOURCE_LOCATION_FORWARD file, line</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl.html">dl</a></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>{</div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="};">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structdl_1_1_log_source_location.html"> 38</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structdl_1_1_log_source_location.html">LogSourceLocation</a></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structdl_1_1_log_source_location.html#a5abf91756ace4fdff0036dce794b1ac2"> 40</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code hl_variable" href="structdl_1_1_log_source_location.html#a5abf91756ace4fdff0036dce794b1ac2">_file</a>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structdl_1_1_log_source_location.html#a37319f0ba712c5cb8e664b57ae955fe0"> 41</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code hl_variable" href="structdl_1_1_log_source_location.html#a37319f0ba712c5cb8e664b57ae955fe0">_func</a>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="structdl_1_1_log_source_location.html#a5084d85a15a7bffa3e9d04d4768b677d"> 42</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structdl_1_1_log_source_location.html#a5084d85a15a7bffa3e9d04d4768b677d">_line</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structdl_1_1_log_source_location.html#a5909234967d2d2377b0aef459795851a"> 43</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structdl_1_1_log_source_location.html#a5909234967d2d2377b0aef459795851a">_column</a>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> };</div>
</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span>}</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="preprocessor">#if DL_PLATFORM == DL_PLATFORM_WIN32</span></div>
<div class="foldopen" id="foldopen00048" data-start="" data-end="">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="dl__log_8h.html#af74bb7c6e919e923c59821dd54fc915b"> 48</a></span><span class="preprocessor">#define DL_MAKE_SOURCE_LOCATION(loc) \</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="preprocessor"> LogSourceLocation loc;\</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="preprocessor"> loc._file = location.file_name();\</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="preprocessor"> loc._func = location.function_name();\</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="preprocessor"> loc._line = location.line();\</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="preprocessor"> loc._column = location.column();</span></div>
</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="preprocessor">#define DL_MAKE_SOURCE_LOCATION(loc) \</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="preprocessor"> LogSourceLocation loc;\</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="preprocessor"> loc._file = file;\</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="preprocessor"> loc._func = __func__;\</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="preprocessor"> loc._line = line;\</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="preprocessor"> loc._column = 0;</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="preprocessor">#include &lt;fmt/format.h&gt;</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl.html">dl</a></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span>{</div>
<div class="foldopen" id="foldopen00067" data-start="{" data-end="};">
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1"> 67</a></span><span class="keyword">constexpr</span> std::array&lt;std::string_view, 9&gt; <a class="code hl_variable" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1">DL_LOG_SYSTEM_LEVLE_NAME</a> = {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="stringliteral">&quot;damage&quot;</span>, <span class="stringliteral">&quot;err&quot;</span>, <span class="stringliteral">&quot;warn&quot;</span>, <span class="stringliteral">&quot;notice&quot;</span>, <span class="stringliteral">&quot;msg&quot;</span>, <span class="stringliteral">&quot;info&quot;</span>, <span class="stringliteral">&quot;test&quot;</span>, <span class="stringliteral">&quot;pause&quot;</span>,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>};</div>
</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="namespacedl.html#a561a69381af8b715e2fd70d6f38c3ffa"> 72</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a561a69381af8b715e2fd70d6f38c3ffa">Output</a>(std::string_view str);</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="foldopen" id="foldopen00076" data-start="{" data-end="};">
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html"> 76</a></span><span class="keyword">class </span><a class="code hl_function" href="classdl_1_1_log_system.html#a1d57af036590ec06bd24b39e939064e5">LogSystem</a></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"><a class="line" href="classdl_1_1_log_system.html#aaafc87fe98faddf1dfa4ed65a72e731f"> 78</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_friend" href="classdl_1_1_log_system.html#aaafc87fe98faddf1dfa4ed65a72e731f">LogLimit</a>;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#acb1f3d235f45386d8cf9da340b4ec179"> 79</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_friend" href="classdl_1_1_log_system.html#acb1f3d235f45386d8cf9da340b4ec179">LogStackTrack</a>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a88da0104b1696c2c4cf7712d9dd884b2"> 80</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_friend" href="classdl_1_1_log_system.html#a88da0104b1696c2c4cf7712d9dd884b2">LogLevelSet</a>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00083" data-start="{" data-end="};">
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37"> 83</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="l00084" name="l00084"></a><span class="lineno"> 84</span> {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a806bb06d54f268f1d2ce74bde5b48f34"> 85</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a806bb06d54f268f1d2ce74bde5b48f34">DAMAGE</a>,</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37acd22bad976363fdd1bfbf6759fede482"> 86</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37acd22bad976363fdd1bfbf6759fede482">ERR</a>,</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a32bd8a1db2275458673903bdb84cb277"> 87</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a32bd8a1db2275458673903bdb84cb277">WARN</a>,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37aaa14599dc3fdfa9cc81a7c3c247b77b9"> 88</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37aaa14599dc3fdfa9cc81a7c3c247b77b9">NOTICE</a>,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a1b7ef95d69775316be10f7090f2d62fa"> 89</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a1b7ef95d69775316be10f7090f2d62fa">MSG</a>,</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a551b723eafd6a31d444fcb2f5920fbd3"> 90</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a551b723eafd6a31d444fcb2f5920fbd3">INFO</a>,</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a033bd94b1168d7e4f0d644c3c95e35bf"> 91</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a033bd94b1168d7e4f0d644c3c95e35bf">TEST</a>,</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a291554596c183e837f0a6bec3767c891"> 92</a></span> <a class="code hl_enumvalue" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37a291554596c183e837f0a6bec3767c891">PAUSE</a>,</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> };</div>
</div>
<div class="foldopen" id="foldopen00094" data-start="{" data-end="};">
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html"> 94</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="l00095" name="l00095"></a><span class="lineno"> 95</span> {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#ad7ea5eb41046686ef42d61b8e78df611"> 96</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="l00097" name="l00097"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#aff3dc6301a2e4c94f6d58a9c506db585"> 97</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="l00098" name="l00098"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#ad0d66a0f936c9735ce01e87efd6fa0bd"> 98</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="l00099" name="l00099"></a><span class="lineno"><a class="line" href="structdl_1_1_log_system_1_1_setting.html#ad29f0f478f04a05225f4a07699281c6f"> 99</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="l00100" name="l00100"></a><span class="lineno"> 100</span> };</div>
</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a1d57af036590ec06bd24b39e939064e5"> 101</a></span> <a class="code hl_function" href="classdl_1_1_log_system.html#a1d57af036590ec06bd24b39e939064e5">LogSystem</a>();</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span></div>
<div class="foldopen" id="foldopen00104" data-start="{" data-end="}">
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a4e25e28e482cda1bf7c3e7c54fbe3f92"> 104</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">Setting</a>&amp; <a class="code hl_function" href="classdl_1_1_log_system.html#a4e25e28e482cda1bf7c3e7c54fbe3f92">GetSetting</a>()</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> _mutexSetting.lock();</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">Setting</a>&amp; ret = _stackSetting.top();</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> _mutexSetting.unlock();</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">return</span> ret;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> }</div>
</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a5b8fa0c1c9f810ec1369825a598287b0"> 118</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_log_system.html#a5b8fa0c1c9f810ec1369825a598287b0">SetLogFile</a>(std::string_view path, std::string_view name = {}, <span class="keywordtype">bool</span> clear = <span class="keyword">true</span>);</div>
<div class="foldopen" id="foldopen00119" data-start="{" data-end="}">
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#aeda915c01471fb8080236eedf8d6c560"> 119</a></span> std::string <a class="code hl_function" href="classdl_1_1_log_system.html#aeda915c01471fb8080236eedf8d6c560">GetLogFile</a>()</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> {</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordflow">return</span> _logFile;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="foldopen" id="foldopen00124" data-start="{" data-end="}">
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a1befb45df867771ae986096c62e0a7a7"> 124</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="l00125" name="l00125"></a><span class="lineno"> 125</span> {</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> _mutexLevel.lock();</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordtype">bool</span> ret = level &gt; _stackLevel.top();</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> _mutexLevel.unlock();</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">return</span> ret;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span></div>
<div class="foldopen" id="foldopen00133" data-start="{" data-end="}">
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a9bdfa8d92d18775f80e60305ed9beaca"> 133</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="l00134" name="l00134"></a><span class="lineno"> 134</span> {</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">return</span> level &lt;= _levelMsgBox;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span></div>
<div class="foldopen" id="foldopen00138" data-start="{" data-end="}">
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#aef920792f225422ce7aeb616f141747b"> 138</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_log_system.html#aef920792f225422ce7aeb616f141747b">SetLevelMsgBox</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</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> _levelMsgBox = level;</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> }</div>
</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"><a class="line" href="classdl_1_1_log_system.html#a61ab234e67cf054b58427a26d4fc310e"> 143</a></span> std::mutex&amp; <a class="code hl_function" href="classdl_1_1_log_system.html#a61ab234e67cf054b58427a26d4fc310e">GetMutex</a>() { <span class="keywordflow">return</span> _mutexOutput; }</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span></div>
<div class="foldopen" id="foldopen00148" data-start="{" data-end="}">
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classdl_1_1_log_system.html#a7a9a592aee577d1b9b79074a12907afe"> 148</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="l00149" name="l00149"></a><span class="lineno"> 149</span> {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordtype">size_t</span> index = (size_t)level;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keywordflow">if</span> (index &gt;= <a class="code hl_variable" href="namespacedl.html#a3890f3a90e743da1b3f9cd475218fdb1">DL_LOG_SYSTEM_LEVLE_NAME</a>.size())</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;NONE&quot;</span>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</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="l00154" name="l00154"></a><span class="lineno"> 154</span> }</div>
</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> std::stack&lt;Setting&gt; _stackSetting;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> std::stack&lt;Level&gt; _stackLevel;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</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="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keyword">static</span> std::string _logFile;<span class="comment">// 日志文件夹(为空时不生成)</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> std::recursive_mutex _mutexSetting;<span class="comment">// 当前设置锁</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> std::recursive_mutex _mutexLevel; <span class="comment">// level锁</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> std::mutex _mutexOutput; <span class="comment">// 输出锁</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// 容易错误使用,改为私有(请使用LogLimit)</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordtype">void</span> Push(<span class="keyword">const</span> Setting&amp; setting)</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> {</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> _mutexSetting.lock();</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> _stackSetting.push(setting);</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> }</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordtype">void</span> Pop()</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> {</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> _stackSetting.pop();</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> _mutexSetting.unlock();</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> }</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordtype">void</span> PushLevel(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> {</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</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#a4e25e28e482cda1bf7c3e7c54fbe3f92">GetSetting</a>();</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> setting._level = level;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> Push(setting);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="keywordtype">void</span> PushLevelLimit(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">Level</a> level)</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> {</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> _mutexLevel.lock();</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> _stackLevel.push(level);</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> <span class="keywordtype">void</span> PopLevelLimit()</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> _stackLevel.pop();</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> _mutexLevel.unlock();</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> }</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span>};</div>
</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span><span class="keyword">extern</span> <a class="code hl_class" href="classdl_1_1_log_system.html">LogSystem</a>* <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>;</div>
<div class="foldopen" id="foldopen00210" data-start="{" data-end="};">
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="classdl_1_1_log_level_set.html"> 210</a></span><span class="keyword">class </span><a class="code hl_function" href="classdl_1_1_log_level_set.html#a7792a7db070fb6d93e898112d27f7e1e">LogLevelSet</a></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span>{</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00213" data-start="{" data-end="}">
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="classdl_1_1_log_level_set.html#a7792a7db070fb6d93e898112d27f7e1e"> 213</a></span> <a class="code hl_function" href="classdl_1_1_log_level_set.html#a7792a7db070fb6d93e898112d27f7e1e">LogLevelSet</a>(<a class="code hl_enumeration" href="classdl_1_1_log_system.html#ab1bf7c6f38c373304054d7288a627f37">LogSystem::Level</a> level)</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> {</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;PushLevel(level);</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> }</div>
</div>
<div class="foldopen" id="foldopen00217" data-start="{" data-end="}">
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="classdl_1_1_log_level_set.html#af1442a03f322d15537a37dd10f1ca2fa"> 217</a></span> <a class="code hl_function" href="classdl_1_1_log_level_set.html#af1442a03f322d15537a37dd10f1ca2fa">~LogLevelSet</a>()</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> {</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;Pop();</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> }</div>
</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span>};</div>
</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span></div>
<div class="foldopen" id="foldopen00223" data-start="{" data-end="};">
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"><a class="line" href="classdl_1_1_log_limit.html"> 223</a></span><span class="keyword">class </span><a class="code hl_function" href="classdl_1_1_log_limit.html#ad26afa2c29bdb0f153856a027ec33177">LogLimit</a></div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>{</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00227" data-start="{" data-end="}">
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="classdl_1_1_log_limit.html#ad26afa2c29bdb0f153856a027ec33177"> 227</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="l00228" name="l00228"></a><span class="lineno"> 228</span> {</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;PushLevelLimit(level);</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> }</div>
</div>
<div class="foldopen" id="foldopen00231" data-start="{" data-end="}">
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"><a class="line" href="classdl_1_1_log_limit.html#a003ef41db94eb6ac39d096d8b623456b"> 231</a></span> <a class="code hl_function" href="classdl_1_1_log_limit.html#a003ef41db94eb6ac39d096d8b623456b">~LogLimit</a>()</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> {</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;PopLevelLimit();</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> }</div>
</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span>};</div>
</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span></div>
<div class="foldopen" id="foldopen00237" data-start="{" data-end="};">
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"><a class="line" href="classdl_1_1_log_stack_track.html"> 237</a></span><span class="keyword">class </span><a class="code hl_function" href="classdl_1_1_log_stack_track.html#a5d76c8ee831989afe6f86305601d1541">LogStackTrack</a></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span>{</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00240" data-start="{" data-end="}">
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"><a class="line" href="classdl_1_1_log_stack_track.html#a5d76c8ee831989afe6f86305601d1541"> 240</a></span> <a class="code hl_function" href="classdl_1_1_log_stack_track.html#a5d76c8ee831989afe6f86305601d1541">LogStackTrack</a>(<span class="keywordtype">bool</span> open = <span class="keyword">true</span>)</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> {</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <a class="code hl_struct" href="structdl_1_1_log_system_1_1_setting.html">LogSystem::Setting</a> s = <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;GetSetting();</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> s.<a class="code hl_variable" href="structdl_1_1_log_system_1_1_setting.html#ad29f0f478f04a05225f4a07699281c6f">_bStackTrace</a> = open;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;Push(s);</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> }</div>
</div>
<div class="foldopen" id="foldopen00246" data-start="{" data-end="}">
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"><a class="line" href="classdl_1_1_log_stack_track.html#aa227d0e29abc9e0d20fccc98ecd74241"> 246</a></span> <a class="code hl_function" href="classdl_1_1_log_stack_track.html#aa227d0e29abc9e0d20fccc98ecd74241">~LogStackTrack</a>()</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> {</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <a class="code hl_variable" href="namespacedl.html#a62cc7ebcc4364286173b92601972eb3f">g_log</a>-&gt;Pop();</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> }</div>
</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span>};</div>
</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span></div>
<div class="foldopen" id="foldopen00255" data-start="{" data-end="}">
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"><a class="line" href="namespacedl.html#a4be24a293bd1feedc6c35d1197d067a8"> 255</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="l00256" name="l00256"></a><span class="lineno"> 256</span>{</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> printf(<span class="stringliteral">&quot;%s&quot;</span>, str.data()); <span class="comment">// printf线程安全</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="comment">//std::cout &lt;&lt; str &lt;&lt; std::endl;</span></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span>}</div>
</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> </div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"><a class="line" href="namespacedl.html#a962072d07ac231cbe08716e44848b915"> 261</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a962072d07ac231cbe08716e44848b915">log_pause0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="namespacedl.html#a67b560c4a363a94234124eed5687d577"> 262</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a67b560c4a363a94234124eed5687d577">log_test0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"><a class="line" href="namespacedl.html#a64b07a8f4a166efa94a36b2490bcc3ec"> 263</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a64b07a8f4a166efa94a36b2490bcc3ec">log_info0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"><a class="line" href="namespacedl.html#a4716a119d61e9997b109d905e7093e03"> 264</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a4716a119d61e9997b109d905e7093e03">log_msg0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"><a class="line" href="namespacedl.html#add7c4a554baa0773ed9e66d6d309897c"> 265</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#add7c4a554baa0773ed9e66d6d309897c">log_notice0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="namespacedl.html#ad869603f8092f62089703cc5d9546d88"> 266</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#ad869603f8092f62089703cc5d9546d88">log_warn0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="namespacedl.html#a63038d8670ad1704740ccba95c1c4341"> 267</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a63038d8670ad1704740ccba95c1c4341">log_err0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"><a class="line" href="namespacedl.html#afb703e5ee68ece94fe964615b96a369b"> 268</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#afb703e5ee68ece94fe964615b96a369b">log_damage0</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span></div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="namespacedl.html#a5bb9ee10db5338251b4bb854939b69b3"> 271</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a5bb9ee10db5338251b4bb854939b69b3">log</a>(std::string_view str, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span></div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"><a class="line" href="namespacedl.html#a44c786a4498a406ac2cd6e27e582b9fb"> 274</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a63038d8670ad1704740ccba95c1c4341">log_err0</a>(<span class="keyword">const</span> std::exception&amp; e, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="namespacedl.html#aceafa80d6352000ee07d169f3c496ad6"> 275</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl.html#a63038d8670ad1704740ccba95c1c4341">log_err0</a>(<span class="keyword">const</span> std::system_error&amp; e, <a class="code hl_define" href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a>);</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> </div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a91583a8f2cf65e8c793fee9181900907"> 277</a></span><span class="preprocessor">#define log_(...) log(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="dl__log_8h.html#aba10d52a2437ba054c567bd1251f1687"> 278</a></span><span class="preprocessor">#define log_pause(...) log_pause0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="dl__log_8h.html#aea1d36b143643ff03392dff21c698db5"> 279</a></span><span class="preprocessor">#define log_test(...) log_test0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="dl__log_8h.html#aa1cfe5444875c8eca0ea6f6993977d6d"> 280</a></span><span class="preprocessor">#define log_info(...) log_info0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a156fd6dffd62306e07b5b77739680688"> 281</a></span><span class="preprocessor">#define log_msg(...) log_msg0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a725275c5ac170bb8f873d63cad37b61f"> 282</a></span><span class="preprocessor">#define log_notice(...) log_notice0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a04af09851c431d178f16b24fa1aac1e9"> 283</a></span><span class="preprocessor">#define log_warn(...) log_warn0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"><a class="line" href="dl__log_8h.html#abc86a6b34614cb6484cdf935d9350abd"> 284</a></span><span class="preprocessor">#define log_err(...) log_err0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="dl__log_8h.html#a7ee4d36745c3799c6d1c99ea082ee5db"> 285</a></span><span class="preprocessor">#define log_damage(...) log_damage0(fmt::format(__VA_ARGS__), DL_SOURCE_LOCATION_CALL)</span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> </div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> </div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> </div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span>}</div>
<div class="ttc" id="aclassdl_1_1_log_level_set_html_a7792a7db070fb6d93e898112d27f7e1e"><div class="ttname"><a href="classdl_1_1_log_level_set.html#a7792a7db070fb6d93e898112d27f7e1e">dl::LogLevelSet::LogLevelSet</a></div><div class="ttdeci">LogLevelSet(LogSystem::Level level)</div><div class="ttdef"><b>定义</b> <a href="#l00213">dl_log.h:213</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_level_set_html_af1442a03f322d15537a37dd10f1ca2fa"><div class="ttname"><a href="classdl_1_1_log_level_set.html#af1442a03f322d15537a37dd10f1ca2fa">dl::LogLevelSet::~LogLevelSet</a></div><div class="ttdeci">~LogLevelSet()</div><div class="ttdef"><b>定义</b> <a href="#l00217">dl_log.h:217</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>定义</b> <a href="#l00231">dl_log.h:231</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>定义</b> <a href="#l00227">dl_log.h:227</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_stack_track_html_a5d76c8ee831989afe6f86305601d1541"><div class="ttname"><a href="classdl_1_1_log_stack_track.html#a5d76c8ee831989afe6f86305601d1541">dl::LogStackTrack::LogStackTrack</a></div><div class="ttdeci">LogStackTrack(bool open=true)</div><div class="ttdef"><b>定义</b> <a href="#l00240">dl_log.h:240</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_stack_track_html_aa227d0e29abc9e0d20fccc98ecd74241"><div class="ttname"><a href="classdl_1_1_log_stack_track.html#aa227d0e29abc9e0d20fccc98ecd74241">dl::LogStackTrack::~LogStackTrack</a></div><div class="ttdeci">~LogStackTrack()</div><div class="ttdef"><b>定义</b> <a href="#l00246">dl_log.h:246</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="ttdoc">日志系统</div><div class="ttdef"><b>定义</b> <a href="#l00076">dl_log.h:77</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="ttdef"><b>定义</b> <a href="#l00124">dl_log.h:124</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_a4e25e28e482cda1bf7c3e7c54fbe3f92"><div class="ttname"><a href="classdl_1_1_log_system.html#a4e25e28e482cda1bf7c3e7c54fbe3f92">dl::LogSystem::GetSetting</a></div><div class="ttdeci">const Setting &amp; GetSetting()</div><div class="ttdoc">返回当前设置</div><div class="ttdef"><b>定义</b> <a href="#l00104">dl_log.h:104</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_a5b8fa0c1c9f810ec1369825a598287b0"><div class="ttname"><a href="classdl_1_1_log_system.html#a5b8fa0c1c9f810ec1369825a598287b0">dl::LogSystem::SetLogFile</a></div><div class="ttdeci">void SetLogFile(std::string_view path, std::string_view name={}, bool clear=true)</div><div class="ttdoc">设置日志文件路径(非线程安全)</div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_a61ab234e67cf054b58427a26d4fc310e"><div class="ttname"><a href="classdl_1_1_log_system.html#a61ab234e67cf054b58427a26d4fc310e">dl::LogSystem::GetMutex</a></div><div class="ttdeci">std::mutex &amp; GetMutex()</div><div class="ttdef"><b>定义</b> <a href="#l00143">dl_log.h:143</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>定义</b> <a href="#l00148">dl_log.h:148</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_a88da0104b1696c2c4cf7712d9dd884b2"><div class="ttname"><a href="classdl_1_1_log_system.html#a88da0104b1696c2c4cf7712d9dd884b2">dl::LogSystem::LogLevelSet</a></div><div class="ttdeci">friend class LogLevelSet</div><div class="ttdef"><b>定义</b> <a href="#l00080">dl_log.h:80</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>定义</b> <a href="#l00133">dl_log.h:133</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_aaafc87fe98faddf1dfa4ed65a72e731f"><div class="ttname"><a href="classdl_1_1_log_system.html#aaafc87fe98faddf1dfa4ed65a72e731f">dl::LogSystem::LogLimit</a></div><div class="ttdeci">friend class LogLimit</div><div class="ttdef"><b>定义</b> <a href="#l00078">dl_log.h:78</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>定义</b> <a href="#l00083">dl_log.h:84</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 class="ttdef"><b>定义</b> <a href="#l00091">dl_log.h:91</a></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 class="ttdef"><b>定义</b> <a href="#l00089">dl_log.h:89</a></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 class="ttdef"><b>定义</b> <a href="#l00092">dl_log.h:92</a></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 class="ttdef"><b>定义</b> <a href="#l00087">dl_log.h:87</a></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 class="ttdef"><b>定义</b> <a href="#l00090">dl_log.h:90</a></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 class="ttdef"><b>定义</b> <a href="#l00085">dl_log.h:85</a></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 class="ttdef"><b>定义</b> <a href="#l00088">dl_log.h:88</a></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 class="ttdef"><b>定义</b> <a href="#l00086">dl_log.h:86</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_acb1f3d235f45386d8cf9da340b4ec179"><div class="ttname"><a href="classdl_1_1_log_system.html#acb1f3d235f45386d8cf9da340b4ec179">dl::LogSystem::LogStackTrack</a></div><div class="ttdeci">friend class LogStackTrack</div><div class="ttdef"><b>定义</b> <a href="#l00079">dl_log.h:79</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_aeda915c01471fb8080236eedf8d6c560"><div class="ttname"><a href="classdl_1_1_log_system.html#aeda915c01471fb8080236eedf8d6c560">dl::LogSystem::GetLogFile</a></div><div class="ttdeci">std::string GetLogFile()</div><div class="ttdef"><b>定义</b> <a href="#l00119">dl_log.h:119</a></div></div>
<div class="ttc" id="aclassdl_1_1_log_system_html_aef920792f225422ce7aeb616f141747b"><div class="ttname"><a href="classdl_1_1_log_system.html#aef920792f225422ce7aeb616f141747b">dl::LogSystem::SetLevelMsgBox</a></div><div class="ttdeci">void SetLevelMsgBox(Level level)</div><div class="ttdoc">设置弹窗等级(小于等于自己才弹,越小越严重)</div><div class="ttdef"><b>定义</b> <a href="#l00138">dl_log.h:138</a></div></div>
<div class="ttc" id="adl__log_8h_html_a1d848ddad94bf640156a31f5d4fc0452"><div class="ttname"><a href="dl__log_8h.html#a1d848ddad94bf640156a31f5d4fc0452">DL_SOURCE_LOCATION</a></div><div class="ttdeci">#define DL_SOURCE_LOCATION</div><div class="ttdef"><b>定义</b> <a href="#l00025">dl_log.h:25</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>定义</b> <a href="dl__array_8h_source.html#l00021">dl_array.h:22</a></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&lt; std::string_view, 9 &gt; DL_LOG_SYSTEM_LEVLE_NAME</div><div class="ttdef"><b>定义</b> <a href="#l00067">dl_log.h:67</a></div></div>
<div class="ttc" id="anamespacedl_html_a4716a119d61e9997b109d905e7093e03"><div class="ttname"><a href="namespacedl.html#a4716a119d61e9997b109d905e7093e03">dl::log_msg0</a></div><div class="ttdeci">void log_msg0(std::string_view str, DL_SOURCE_LOCATION)</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>定义</b> <a href="#l00255">dl_log.h:255</a></div></div>
<div class="ttc" id="anamespacedl_html_a561a69381af8b715e2fd70d6f38c3ffa"><div class="ttname"><a href="namespacedl.html#a561a69381af8b715e2fd70d6f38c3ffa">dl::Output</a></div><div class="ttdeci">void Output(std::string_view str)</div><div class="ttdoc">打印到标准输出、vs、日志文件</div></div>
<div class="ttc" id="anamespacedl_html_a5bb9ee10db5338251b4bb854939b69b3"><div class="ttname"><a href="namespacedl.html#a5bb9ee10db5338251b4bb854939b69b3">dl::log</a></div><div class="ttdeci">void log(std::string_view str, DL_SOURCE_LOCATION)</div><div class="ttdoc">以当前设置输出</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_a63038d8670ad1704740ccba95c1c4341"><div class="ttname"><a href="namespacedl.html#a63038d8670ad1704740ccba95c1c4341">dl::log_err0</a></div><div class="ttdeci">void log_err0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="anamespacedl_html_a64b07a8f4a166efa94a36b2490bcc3ec"><div class="ttname"><a href="namespacedl.html#a64b07a8f4a166efa94a36b2490bcc3ec">dl::log_info0</a></div><div class="ttdeci">void log_info0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="anamespacedl_html_a67b560c4a363a94234124eed5687d577"><div class="ttname"><a href="namespacedl.html#a67b560c4a363a94234124eed5687d577">dl::log_test0</a></div><div class="ttdeci">void log_test0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="anamespacedl_html_a962072d07ac231cbe08716e44848b915"><div class="ttname"><a href="namespacedl.html#a962072d07ac231cbe08716e44848b915">dl::log_pause0</a></div><div class="ttdeci">void log_pause0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="anamespacedl_html_ad869603f8092f62089703cc5d9546d88"><div class="ttname"><a href="namespacedl.html#ad869603f8092f62089703cc5d9546d88">dl::log_warn0</a></div><div class="ttdeci">void log_warn0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="anamespacedl_html_add7c4a554baa0773ed9e66d6d309897c"><div class="ttname"><a href="namespacedl.html#add7c4a554baa0773ed9e66d6d309897c">dl::log_notice0</a></div><div class="ttdeci">void log_notice0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="anamespacedl_html_afb703e5ee68ece94fe964615b96a369b"><div class="ttname"><a href="namespacedl.html#afb703e5ee68ece94fe964615b96a369b">dl::log_damage0</a></div><div class="ttdeci">void log_damage0(std::string_view str, DL_SOURCE_LOCATION)</div></div>
<div class="ttc" id="astructdl_1_1_log_source_location_html"><div class="ttname"><a href="structdl_1_1_log_source_location.html">dl::LogSourceLocation</a></div><div class="ttdef"><b>定义</b> <a href="#l00038">dl_log.h:39</a></div></div>
<div class="ttc" id="astructdl_1_1_log_source_location_html_a37319f0ba712c5cb8e664b57ae955fe0"><div class="ttname"><a href="structdl_1_1_log_source_location.html#a37319f0ba712c5cb8e664b57ae955fe0">dl::LogSourceLocation::_func</a></div><div class="ttdeci">const char * _func</div><div class="ttdef"><b>定义</b> <a href="#l00041">dl_log.h:41</a></div></div>
<div class="ttc" id="astructdl_1_1_log_source_location_html_a5084d85a15a7bffa3e9d04d4768b677d"><div class="ttname"><a href="structdl_1_1_log_source_location.html#a5084d85a15a7bffa3e9d04d4768b677d">dl::LogSourceLocation::_line</a></div><div class="ttdeci">int _line</div><div class="ttdef"><b>定义</b> <a href="#l00042">dl_log.h:42</a></div></div>
<div class="ttc" id="astructdl_1_1_log_source_location_html_a5909234967d2d2377b0aef459795851a"><div class="ttname"><a href="structdl_1_1_log_source_location.html#a5909234967d2d2377b0aef459795851a">dl::LogSourceLocation::_column</a></div><div class="ttdeci">int _column</div><div class="ttdef"><b>定义</b> <a href="#l00043">dl_log.h:43</a></div></div>
<div class="ttc" id="astructdl_1_1_log_source_location_html_a5abf91756ace4fdff0036dce794b1ac2"><div class="ttname"><a href="structdl_1_1_log_source_location.html#a5abf91756ace4fdff0036dce794b1ac2">dl::LogSourceLocation::_file</a></div><div class="ttdeci">const char * _file</div><div class="ttdef"><b>定义</b> <a href="#l00040">dl_log.h:40</a></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>定义</b> <a href="#l00094">dl_log.h:95</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>定义</b> <a href="#l00098">dl_log.h:98</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>定义</b> <a href="#l00099">dl_log.h:99</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>定义</b> <a href="#l00096">dl_log.h:96</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>定义</b> <a href="#l00097">dl_log.h:97</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.1
</small></address>
</div><!-- doc-content -->
</body>
</html>