147 lines
48 KiB
HTML
147 lines
48 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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.15"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Livox SDK API: sdk_core/include/third_party/spdlog/spdlog/sinks/rotating_file_sink.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(initResizable);
|
|
/* @license-end */</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="1.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Livox SDK API
|
|
 <span id="projectnumber">v1.0.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.15 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('rotating__file__sink_8h_source.html','');});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">rotating_file_sink.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="rotating__file__sink_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright(c) 2015 Gabi Melman.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// Distributed under the MIT License (http://opensource.org/licenses/MIT)</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#ifndef SPDLOG_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="spdlog_8h.html">spdlog/spdlog.h</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="file__helper_8h.html">spdlog/details/file_helper.h</a>"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="null__mutex_8h.html">spdlog/details/null_mutex.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="fmt_8h.html">spdlog/fmt/fmt.h</a>"</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="base__sink_8h.html">spdlog/sinks/base_sink.h</a>"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <cerrno></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <chrono></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <ctime></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <mutex></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <tuple></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespacespdlog.html">spdlog</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span>sinks {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">//</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// Rotating file sink based on size</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">//</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">template</span><<span class="keyword">typename</span> Mutex></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classspdlog_1_1sinks_1_1rotating__file__sink.html"> 31</a></span> <span class="keyword">class </span><a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html">rotating_file_sink</a> final : <span class="keyword">public</span> <a class="code" href="classspdlog_1_1sinks_1_1base__sink.html">base_sink</a><Mutex></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a1dcebdde175de15bee24da6e9ec70990"> 34</a></span>  <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a1dcebdde175de15bee24da6e9ec70990">rotating_file_sink</a>(<a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> base_filename, std::size_t max_size, std::size_t max_files, <span class="keywordtype">bool</span> rotate_on_open=<span class="keyword">false</span>)</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  : base_filename_(<a class="code" href="namespacestd.html">std</a>::move(base_filename))</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  , max_size_(max_size)</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  , max_files_(max_files)</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a8612066fd098080cc60e3aefed6a6085">open</a>(<a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a05d77d7013bc54f55cac702c122ac1c9">calc_filename</a>(base_filename_, 0));</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  current_size_ = file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#ae945d9701134218c2d0558958e9d1cf2">size</a>(); <span class="comment">// expensive. called only once</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">if</span> (rotate_on_open && current_size_ > 0)</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  rotate_();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// calc filename according to index and file extension if exists.</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">// e.g. calc_filename("logs/mylog.txt, 3) => "logs/mylog.3.txt".</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a05d77d7013bc54f55cac702c122ac1c9"> 49</a></span>  <span class="keyword">static</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a05d77d7013bc54f55cac702c122ac1c9">calc_filename</a>(<span class="keyword">const</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> &<a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a16489efcc8bd112bbc0151f54ba46f2e">filename</a>, std::size_t index)</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">typename</span> std::conditional<std::is_same<filename_t::value_type, char>::value, <a class="code" href="namespacefmt_1_1v5.html#a87104ff0bbd588f55bbbadf592227d75">fmt::memory_buffer</a>, <a class="code" href="classfmt_1_1v5_1_1basic__memory__buffer.html">fmt::wmemory_buffer</a>><a class="code" href="namespacefmt_1_1v5_1_1internal.html#af8b98afef956b03a99bc61d088705f13">::type</a> w;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">if</span> (index != 0u)</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  {</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> basename, ext;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::tie(basename, ext) = <a class="code" href="classspdlog_1_1details_1_1file__helper.html#a28d87e3f42c52a12c95af0558aca66f2">details::file_helper::split_by_extension</a>(<a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a16489efcc8bd112bbc0151f54ba46f2e">filename</a>);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="namespacefmt_1_1v5.html#a253206334a77520a94a72af63516dabd">fmt::format_to</a>(w, <a class="code" href="os_8h.html#a63d60ea1c1a925d3db13864d37bd2da2">SPDLOG_FILENAME_T</a>(<span class="stringliteral">"{}.{}{}"</span>), basename, index, ext);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="namespacefmt_1_1v5.html#a253206334a77520a94a72af63516dabd">fmt::format_to</a>(w, <a class="code" href="os_8h.html#a63d60ea1c1a925d3db13864d37bd2da2">SPDLOG_FILENAME_T</a>(<span class="stringliteral">"{}"</span>), <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a16489efcc8bd112bbc0151f54ba46f2e">filename</a>);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> <a class="code" href="namespacefmt_1_1v5.html#af7906102d07e0d93b609aef6c05fc27a">fmt::to_string</a>(w);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a16489efcc8bd112bbc0151f54ba46f2e"> 65</a></span>  <span class="keyword">const</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> &<a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a16489efcc8bd112bbc0151f54ba46f2e">filename</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a76610058a1769b25bd6ed52a1443b552">filename</a>();</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a3cf93e445ad92380c7d352f971cd76a4"> 71</a></span>  <span class="keywordtype">void</span> <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a3cf93e445ad92380c7d352f971cd76a4">sink_it_</a>(<span class="keyword">const</span> <a class="code" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &msg)<span class="keyword"> override</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classfmt_1_1v5_1_1basic__memory__buffer.html">fmt::memory_buffer</a> formatted;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classspdlog_1_1sinks_1_1sink.html#aa0d19f09363a11b63b4a9b1d46f8a4b3">sink::formatter_</a>->format(msg, formatted);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  current_size_ += formatted.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>();</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">if</span> (current_size_ > max_size_)</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  rotate_();</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  current_size_ = formatted.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>();</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a51eb58a2d46f1896f3ab7b9d323d97ae">write</a>(formatted);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#ae93e4792b76f73bb0be8e50b5c5e889b"> 84</a></span>  <span class="keywordtype">void</span> <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#ae93e4792b76f73bb0be8e50b5c5e889b">flush_</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a1a75f29ec0c13d9fbc269bcd8378b18b">flush</a>();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="comment">// Rotate files:</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// log.txt -> log.1.txt</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// log.1.txt -> log.2.txt</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// log.2.txt -> log.3.txt</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// log.3.txt -> delete</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">void</span> rotate_()</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">using</span> <a class="code" href="namespacespdlog_1_1details_1_1os.html#ac7c0d6af1f3f652f23e57f057217b9a7">details::os::filename_to_str</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a6a6d7a75014ae880857b4fe4fd01dc7a">close</a>();</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> i = max_files_; i > 0; --i)</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> src = <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a05d77d7013bc54f55cac702c122ac1c9">calc_filename</a>(base_filename_, i - 1);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">if</span> (!<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a8c5f69588e8a54f436c3565317c233bd">details::file_helper::file_exists</a>(src))</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> target = <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a05d77d7013bc54f55cac702c122ac1c9">calc_filename</a>(base_filename_, i);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span> (!rename_file(src, target))</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">// if failed try again after a small delay.</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="comment">// this is a workaround to a windows issue, where very high rotation</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// rates can cause the rename to fail with permission denied (because of antivirus?).</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="namespacespdlog_1_1details_1_1os.html#a56a474fcf965264674346ffdefac0759">details::os::sleep_for_millis</a>(100);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">if</span> (!rename_file(src, target))</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a21c688da7f241c53871b462c3a5c2c94">reopen</a>(<span class="keyword">true</span>); <span class="comment">// truncate the log file anyway to prevent it to grow beyond its limit!</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  current_size_ = 0;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">throw</span> <a class="code" href="classspdlog_1_1spdlog__ex.html">spdlog_ex</a>(</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="stringliteral">"rotating_file_sink: failed renaming "</span> + <a class="code" href="namespacespdlog_1_1details_1_1os.html#ac7c0d6af1f3f652f23e57f057217b9a7">filename_to_str</a>(src) + <span class="stringliteral">" to "</span> + <a class="code" href="namespacespdlog_1_1details_1_1os.html#ac7c0d6af1f3f652f23e57f057217b9a7">filename_to_str</a>(target), errno);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  }</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  file_helper_.<a class="code" href="classspdlog_1_1details_1_1file__helper.html#a21c688da7f241c53871b462c3a5c2c94">reopen</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="comment">// delete the target if exists, and rename the src file to target</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// return true on success, false otherwise.</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">bool</span> rename_file(<span class="keyword">const</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> &src_filename, <span class="keyword">const</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> &target_filename)</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="comment">// try to delete the target file in case it already exists.</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  (void)<a class="code" href="namespacespdlog_1_1details_1_1os.html#a6026b23c139f733601c1a5fa9f4d555f">details::os::remove</a>(target_filename);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> <a class="code" href="namespacespdlog_1_1details_1_1os.html#a8603bb3ec0aab28cf4fd6a0ef7cc78b9">details::os::rename</a>(src_filename, target_filename) == 0;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> base_filename_;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  std::size_t max_size_;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  std::size_t max_files_;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  std::size_t current_size_;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  details::file_helper file_helper_;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> };</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="namespacespdlog_1_1sinks.html#a70b4fab83ca180ef19c4124f4823aeaa"> 142</a></span> <span class="keyword">using</span> <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html">rotating_file_sink_mt</a> = <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html">rotating_file_sink<std::mutex></a>;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="namespacespdlog_1_1sinks.html#a694eff66a11012e2fbe3fa3a1c963c96"> 143</a></span> <span class="keyword">using</span> <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html">rotating_file_sink_st</a> = <a class="code" href="classspdlog_1_1sinks_1_1rotating__file__sink.html">rotating_file_sink<details::null_mutex></a>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> } <span class="comment">// namespace sinks</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment">//</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment">// factory functions</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment">//</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">template</span><<span class="keyword">typename</span> Factory = default_factory></div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespacespdlog.html#a22f7ba52bed824030a97583cf1628af9"> 152</a></span> <span class="keyword">inline</span> std::shared_ptr<logger> <a class="code" href="namespacespdlog.html#a22f7ba52bed824030a97583cf1628af9">rotating_logger_mt</a>(</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">const</span> std::string &logger_name, <span class="keyword">const</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> &filename, <span class="keywordtype">size_t</span> max_file_size, <span class="keywordtype">size_t</span> max_files, <span class="keywordtype">bool</span> rotate_on_open=<span class="keyword">false</span>)</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> {</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">return</span> Factory::template create<sinks::rotating_file_sink_mt>(logger_name, filename, max_file_size, max_files, rotate_on_open);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keyword">template</span><<span class="keyword">typename</span> Factory = default_factory></div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="namespacespdlog.html#a8f8f238ddac5a799696cf25e98b382e7"> 159</a></span> <span class="keyword">inline</span> std::shared_ptr<logger> <a class="code" href="namespacespdlog.html#a8f8f238ddac5a799696cf25e98b382e7">rotating_logger_st</a>(</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">const</span> std::string &logger_name, <span class="keyword">const</span> <a class="code" href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">filename_t</a> &filename, <span class="keywordtype">size_t</span> max_file_size, <span class="keywordtype">size_t</span> max_files, <span class="keywordtype">bool</span> rotate_on_open = <span class="keyword">false</span>)</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">return</span> Factory::template create<sinks::rotating_file_sink_st>(logger_name, filename, max_file_size, max_files, rotate_on_open);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> } <span class="comment">// namespace spdlog</span></div><div class="ttc" id="fmt_8h_html"><div class="ttname"><a href="fmt_8h.html">fmt.h</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_html_a22f7ba52bed824030a97583cf1628af9"><div class="ttname"><a href="namespacespdlog.html#a22f7ba52bed824030a97583cf1628af9">spdlog::rotating_logger_mt</a></div><div class="ttdeci">std::shared_ptr< logger > rotating_logger_mt(const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false)</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00152">rotating_file_sink.h:152</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1spdlog__ex_html"><div class="ttname"><a href="classspdlog_1_1spdlog__ex.html">spdlog::spdlog_ex</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00175">common.h:175</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_1_1details_1_1os_html_a56a474fcf965264674346ffdefac0759"><div class="ttname"><a href="namespacespdlog_1_1details_1_1os.html#a56a474fcf965264674346ffdefac0759">spdlog::details::os::sleep_for_millis</a></div><div class="ttdeci">void sleep_for_millis(int milliseconds) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="os_8h_source.html#l00351">os.h:351</a></div></div>
|
|
<div class="ttc" id="classfmt_1_1v5_1_1basic__memory__buffer_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__memory__buffer.html">fmt::v5::basic_memory_buffer</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00464">format.h:464</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a8612066fd098080cc60e3aefed6a6085"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a8612066fd098080cc60e3aefed6a6085">spdlog::details::file_helper::open</a></div><div class="ttdeci">void open(const filename_t &fname, bool truncate=false)</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00042">file_helper.h:42</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1rotating__file__sink_html_ae93e4792b76f73bb0be8e50b5c5e889b"><div class="ttname"><a href="classspdlog_1_1sinks_1_1rotating__file__sink.html#ae93e4792b76f73bb0be8e50b5c5e889b">spdlog::sinks::rotating_file_sink::flush_</a></div><div class="ttdeci">void flush_() override</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00084">rotating_file_sink.h:84</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_html_a8f8f238ddac5a799696cf25e98b382e7"><div class="ttname"><a href="namespacespdlog.html#a8f8f238ddac5a799696cf25e98b382e7">spdlog::rotating_logger_st</a></div><div class="ttdeci">std::shared_ptr< logger > rotating_logger_st(const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false)</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00159">rotating_file_sink.h:159</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1sink_html_aa0d19f09363a11b63b4a9b1d46f8a4b3"><div class="ttname"><a href="classspdlog_1_1sinks_1_1sink.html#aa0d19f09363a11b63b4a9b1d46f8a4b3">spdlog::sinks::sink::formatter_</a></div><div class="ttdeci">std::unique_ptr< spdlog::formatter > formatter_</div><div class="ttdef"><b>Definition:</b> <a href="sink_8h_source.html#l00050">sink.h:50</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1rotating__file__sink_html_a05d77d7013bc54f55cac702c122ac1c9"><div class="ttname"><a href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a05d77d7013bc54f55cac702c122ac1c9">spdlog::sinks::rotating_file_sink::calc_filename</a></div><div class="ttdeci">static filename_t calc_filename(const filename_t &filename, std::size_t index)</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00049">rotating_file_sink.h:49</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1rotating__file__sink_html_a3cf93e445ad92380c7d352f971cd76a4"><div class="ttname"><a href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a3cf93e445ad92380c7d352f971cd76a4">spdlog::sinks::rotating_file_sink::sink_it_</a></div><div class="ttdeci">void sink_it_(const details::log_msg &msg) override</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00071">rotating_file_sink.h:71</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1rotating__file__sink_html_a16489efcc8bd112bbc0151f54ba46f2e"><div class="ttname"><a href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a16489efcc8bd112bbc0151f54ba46f2e">spdlog::sinks::rotating_file_sink::filename</a></div><div class="ttdeci">const filename_t & filename() const</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00065">rotating_file_sink.h:65</a></div></div>
|
|
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00297">format.h:297</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a21c688da7f241c53871b462c3a5c2c94"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a21c688da7f241c53871b462c3a5c2c94">spdlog::details::file_helper::reopen</a></div><div class="ttdeci">void reopen(bool truncate)</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00060">file_helper.h:60</a></div></div>
|
|
<div class="ttc" id="null__mutex_8h_html"><div class="ttname"><a href="null__mutex_8h.html">null_mutex.h</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_html"><div class="ttname"><a href="namespacespdlog.html">spdlog</a></div><div class="ttdef"><b>Definition:</b> <a href="async_8h_source.html#l00027">async.h:27</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a28d87e3f42c52a12c95af0558aca66f2"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a28d87e3f42c52a12c95af0558aca66f2">spdlog::details::file_helper::split_by_extension</a></div><div class="ttdeci">static std::tuple< filename_t, filename_t > split_by_extension(const spdlog::filename_t &fname)</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00125">file_helper.h:125</a></div></div>
|
|
<div class="ttc" id="namespacefmt_1_1v5_html_a87104ff0bbd588f55bbbadf592227d75"><div class="ttname"><a href="namespacefmt_1_1v5.html#a87104ff0bbd588f55bbbadf592227d75">fmt::v5::memory_buffer</a></div><div class="ttdeci">basic_memory_buffer< char > memory_buffer</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00553">format.h:553</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_1_1details_1_1os_html_a6026b23c139f733601c1a5fa9f4d555f"><div class="ttname"><a href="namespacespdlog_1_1details_1_1os.html#a6026b23c139f733601c1a5fa9f4d555f">spdlog::details::os::remove</a></div><div class="ttdeci">int remove(const filename_t &filename) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="os_8h_source.html#l00169">os.h:169</a></div></div>
|
|
<div class="ttc" id="namespacefmt_1_1v5_1_1internal_html_af8b98afef956b03a99bc61d088705f13"><div class="ttname"><a href="namespacefmt_1_1v5_1_1internal.html#af8b98afef956b03a99bc61d088705f13">fmt::v5::internal::type</a></div><div class="ttdeci">type</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00530">core.h:530</a></div></div>
|
|
<div class="ttc" id="spdlog_8h_html"><div class="ttname"><a href="spdlog_8h.html">spdlog.h</a></div></div>
|
|
<div class="ttc" id="structspdlog_1_1details_1_1log__msg_html"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html">spdlog::details::log_msg</a></div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00016">log_msg.h:16</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a51eb58a2d46f1896f3ab7b9d323d97ae"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a51eb58a2d46f1896f3ab7b9d323d97ae">spdlog::details::file_helper::write</a></div><div class="ttdeci">void write(const fmt::memory_buffer &buf)</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00083">file_helper.h:83</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_html_acf7ce125b3622e44f8f1702d699e0b06"><div class="ttname"><a href="namespacespdlog.html#acf7ce125b3622e44f8f1702d699e0b06">spdlog::filename_t</a></div><div class="ttdeci">std::string filename_t</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00205">common.h:205</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a76610058a1769b25bd6ed52a1443b552"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a76610058a1769b25bd6ed52a1443b552">spdlog::details::file_helper::filename</a></div><div class="ttdeci">const filename_t & filename() const</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00102">file_helper.h:102</a></div></div>
|
|
<div class="ttc" id="file__helper_8h_html"><div class="ttname"><a href="file__helper_8h.html">file_helper.h</a></div></div>
|
|
<div class="ttc" id="namespacefmt_1_1v5_html_a253206334a77520a94a72af63516dabd"><div class="ttname"><a href="namespacefmt_1_1v5.html#a253206334a77520a94a72af63516dabd">fmt::v5::format_to</a></div><div class="ttdeci">std::enable_if< is_contiguous< Container >::value &&internal::is_string< S >::value, std::back_insert_iterator< Container > >::type format_to(std::back_insert_iterator< Container > out, const S &format_str, const Args &... args)</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l01430">core.h:1430</a></div></div>
|
|
<div class="ttc" id="base__sink_8h_html"><div class="ttname"><a href="base__sink_8h.html">base_sink.h</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_ae945d9701134218c2d0558958e9d1cf2"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#ae945d9701134218c2d0558958e9d1cf2">spdlog::details::file_helper::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00093">file_helper.h:93</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_1_1details_1_1os_html_a8603bb3ec0aab28cf4fd6a0ef7cc78b9"><div class="ttname"><a href="namespacespdlog_1_1details_1_1os.html#a8603bb3ec0aab28cf4fd6a0ef7cc78b9">spdlog::details::os::rename</a></div><div class="ttdeci">int rename(const filename_t &filename1, const filename_t &filename2) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="os_8h_source.html#l00178">os.h:178</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a1a75f29ec0c13d9fbc269bcd8378b18b"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a1a75f29ec0c13d9fbc269bcd8378b18b">spdlog::details::file_helper::flush</a></div><div class="ttdeci">void flush()</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00069">file_helper.h:69</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a6a6d7a75014ae880857b4fe4fd01dc7a"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a6a6d7a75014ae880857b4fe4fd01dc7a">spdlog::details::file_helper::close</a></div><div class="ttdeci">void close()</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00074">file_helper.h:74</a></div></div>
|
|
<div class="ttc" id="classfmt_1_1v5_1_1internal_1_1basic__buffer_html_ac4761deba75a7238ae29243b159b9943"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">fmt::v5::internal::basic_buffer::size</a></div><div class="ttdeci">std::size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00250">core.h:250</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1details_1_1file__helper_html_a8c5f69588e8a54f436c3565317c233bd"><div class="ttname"><a href="classspdlog_1_1details_1_1file__helper.html#a8c5f69588e8a54f436c3565317c233bd">spdlog::details::file_helper::file_exists</a></div><div class="ttdeci">static bool file_exists(const filename_t &fname)</div><div class="ttdef"><b>Definition:</b> <a href="file__helper_8h_source.html#l00107">file_helper.h:107</a></div></div>
|
|
<div class="ttc" id="os_8h_html_a63d60ea1c1a925d3db13864d37bd2da2"><div class="ttname"><a href="os_8h.html#a63d60ea1c1a925d3db13864d37bd2da2">SPDLOG_FILENAME_T</a></div><div class="ttdeci">#define SPDLOG_FILENAME_T(s)</div><div class="ttdef"><b>Definition:</b> <a href="os_8h_source.html#l00369">os.h:369</a></div></div>
|
|
<div class="ttc" id="namespacefmt_1_1v5_html_af7906102d07e0d93b609aef6c05fc27a"><div class="ttname"><a href="namespacefmt_1_1v5.html#af7906102d07e0d93b609aef6c05fc27a">fmt::v5::to_string</a></div><div class="ttdeci">std::string to_string(const T &value)</div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l03209">format.h:3209</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1rotating__file__sink_html_a1dcebdde175de15bee24da6e9ec70990"><div class="ttname"><a href="classspdlog_1_1sinks_1_1rotating__file__sink.html#a1dcebdde175de15bee24da6e9ec70990">spdlog::sinks::rotating_file_sink::rotating_file_sink</a></div><div class="ttdeci">rotating_file_sink(filename_t base_filename, std::size_t max_size, std::size_t max_files, bool rotate_on_open=false)</div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00034">rotating_file_sink.h:34</a></div></div>
|
|
<div class="ttc" id="namespacespdlog_1_1details_1_1os_html_ac7c0d6af1f3f652f23e57f057217b9a7"><div class="ttname"><a href="namespacespdlog_1_1details_1_1os.html#ac7c0d6af1f3f652f23e57f057217b9a7">spdlog::details::os::filename_to_str</a></div><div class="ttdeci">std::string filename_to_str(const filename_t &filename)</div><div class="ttdef"><b>Definition:</b> <a href="os_8h_source.html#l00370">os.h:370</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1rotating__file__sink_html"><div class="ttname"><a href="classspdlog_1_1sinks_1_1rotating__file__sink.html">spdlog::sinks::rotating_file_sink</a></div><div class="ttdef"><b>Definition:</b> <a href="rotating__file__sink_8h_source.html#l00031">rotating_file_sink.h:31</a></div></div>
|
|
<div class="ttc" id="classspdlog_1_1sinks_1_1base__sink_html"><div class="ttname"><a href="classspdlog_1_1sinks_1_1base__sink.html">spdlog::sinks::base_sink</a></div><div class="ttdef"><b>Definition:</b> <a href="base__sink_8h_source.html#l00022">base_sink.h:22</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_5f1136fe404e0a548faf586fae339a6a.html">sdk_core</a></li><li class="navelem"><a class="el" href="dir_fef6b6f1028f30fedf17225feaaa02fe.html">include</a></li><li class="navelem"><a class="el" href="dir_7bb3e31efd6b819bbb0704cee4a66d41.html">third_party</a></li><li class="navelem"><a class="el" href="dir_cf58c3a45797022668a1e269b5315a33.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_248a80cf6760c7a1ab13394a1c16f7b2.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_92a4bcc0ca1142b221c58a95a60bf3b6.html">sinks</a></li><li class="navelem"><a class="el" href="rotating__file__sink_8h.html">rotating_file_sink.h</a></li>
|
|
<li class="footer">Generated by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|