This commit is contained in:
bthomee
2025-07-02 19:14:40 +00:00
parent d22b4d4a1b
commit 41fda84d73
21 changed files with 110 additions and 106 deletions

View File

@@ -172,72 +172,74 @@ $(function() {
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;FTL:&quot;</span>;</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"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournalSink.html#a6b87ebded00e75b729df558c7e1e8318">suite_</a>.<a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a> &lt;&lt; s &lt;&lt; <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournalSink.html#ad3f47513b7b061a17553b14db5f2cc6e">partition_</a> &lt;&lt; text &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span>}</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html"> 100</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1SuiteJournal.html">SuiteJournal</a></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span>{</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd"> 102</a></span> <a class="code hl_class" href="classripple_1_1test_1_1SuiteJournalSink.html">SuiteJournalSink</a> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">sink_</a>;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af"> 103</a></span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">journal_</a>;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#a99eac75534362c52696d744511367b85"> 106</a></span> <a class="code hl_function" href="classripple_1_1test_1_1SuiteJournal.html#a99eac75534362c52696d744511367b85">SuiteJournal</a>(</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; partition,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a>&amp; suite,</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> threshold = <a class="code hl_enumvalue" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73beafb23b01f4530b3bffdf2b2253ae4f6e7">beast::severities::kFatal</a>)</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> : <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">sink_</a>(partition, threshold, suite), <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">journal_</a>(<a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">sink_</a>)</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="comment">// Clang 10.0.0 and 10.0.1 disagree about formatting operator&amp;</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="comment">// TBD Re-enable formatting when we upgrade to clang 11</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="comment">// clang-format off</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#a5eef8fa3d0f291f809961640626ad69e"> 116</a></span> <span class="keyword">operator</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> &amp;()</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// clang-format on</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> {</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">journal_</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>};</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span><span class="comment">// this sink can be used to create a custom journal</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="comment">// whose log messages will be captured to a stringstream</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="comment">// that can be later inspected.</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html"> 126</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1StreamSink.html">StreamSink</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1Journal_1_1Sink.html">beast::Journal::Sink</a></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>{</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd"> 128</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> <a class="code hl_variable" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">strm_</a>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#abdcea9eb74b3c8a83d97859ddaabdcd3"> 131</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#abdcea9eb74b3c8a83d97859ddaabdcd3">StreamSink</a>(</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> <a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a763da4afe95c22997084ad368db9dfc1">threshold</a> = <a class="code hl_enumvalue" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73bea4ca6e1de5160e0e1b1b0b127681bc0c7">beast::severities::kDebug</a>)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> : <a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a8bdfcab1212a7327b4dc4984c36f8b52">Sink</a>(<a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a763da4afe95c22997084ad368db9dfc1">threshold</a>, false)</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> }</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a03cffe95c68e565b951135f957c9d3f9"> 138</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a03cffe95c68e565b951135f957c9d3f9">write</a>(<a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> level, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; text)<span class="keyword"> override</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">if</span> (level &lt; <a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a763da4afe95c22997084ad368db9dfc1">threshold</a>())</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3">writeAlways</a>(level, text);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> }</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">inline</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3"> 146</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3">writeAlways</a>(<a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> level, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; text)<span class="keyword"></span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="keyword"> override</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_variable" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">strm_</a> &lt;&lt; text &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a364fe06c027830f9b467e7ed3a2d44d2"> 153</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a364fe06c027830f9b467e7ed3a2d44d2">messages</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">strm_</a>;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> }</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>};</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> log_mutex;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(log_mutex);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournalSink.html#a6b87ebded00e75b729df558c7e1e8318">suite_</a>.<a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">log</a> &lt;&lt; s &lt;&lt; <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournalSink.html#ad3f47513b7b061a17553b14db5f2cc6e">partition_</a> &lt;&lt; text &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span>}</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html"> 102</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1SuiteJournal.html">SuiteJournal</a></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span>{</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd"> 104</a></span> <a class="code hl_class" href="classripple_1_1test_1_1SuiteJournalSink.html">SuiteJournalSink</a> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">sink_</a>;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af"> 105</a></span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">journal_</a>;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#a99eac75534362c52696d744511367b85"> 108</a></span> <a class="code hl_function" href="classripple_1_1test_1_1SuiteJournal.html#a99eac75534362c52696d744511367b85">SuiteJournal</a>(</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; partition,</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a>&amp; suite,</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> threshold = <a class="code hl_enumvalue" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73beafb23b01f4530b3bffdf2b2253ae4f6e7">beast::severities::kFatal</a>)</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> : <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">sink_</a>(partition, threshold, suite), <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">journal_</a>(<a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">sink_</a>)</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> {</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> }</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="comment">// Clang 10.0.0 and 10.0.1 disagree about formatting operator&amp;</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="comment">// TBD Re-enable formatting when we upgrade to clang 11</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// clang-format off</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1SuiteJournal.html#a5eef8fa3d0f291f809961640626ad69e"> 118</a></span> <span class="keyword">operator</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> &amp;()</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="comment">// clang-format on</span></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> <a class="code hl_variable" href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">journal_</a>;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span>};</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="comment">// this sink can be used to create a custom journal</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span><span class="comment">// whose log messages will be captured to a stringstream</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span><span class="comment">// that can be later inspected.</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html"> 128</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1StreamSink.html">StreamSink</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1Journal_1_1Sink.html">beast::Journal::Sink</a></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span>{</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd"> 130</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> <a class="code hl_variable" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">strm_</a>;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#abdcea9eb74b3c8a83d97859ddaabdcd3"> 133</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#abdcea9eb74b3c8a83d97859ddaabdcd3">StreamSink</a>(</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> <a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a763da4afe95c22997084ad368db9dfc1">threshold</a> = <a class="code hl_enumvalue" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73bea4ca6e1de5160e0e1b1b0b127681bc0c7">beast::severities::kDebug</a>)</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> : <a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a8bdfcab1212a7327b4dc4984c36f8b52">Sink</a>(<a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a763da4afe95c22997084ad368db9dfc1">threshold</a>, false)</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> {</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> }</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a03cffe95c68e565b951135f957c9d3f9"> 140</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a03cffe95c68e565b951135f957c9d3f9">write</a>(<a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> level, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; text)<span class="keyword"> override</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordflow">if</span> (level &lt; <a class="code hl_function" href="classbeast_1_1Journal_1_1Sink.html#a763da4afe95c22997084ad368db9dfc1">threshold</a>())</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3">writeAlways</a>(level, text);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> }</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">inline</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3"> 148</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3">writeAlways</a>(<a class="code hl_enumeration" href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a> level, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; text)<span class="keyword"></span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span><span class="keyword"> override</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_variable" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">strm_</a> &lt;&lt; text &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> }</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1StreamSink.html#a364fe06c027830f9b467e7ed3a2d44d2"> 155</a></span> <a class="code hl_function" href="classripple_1_1test_1_1StreamSink.html#a364fe06c027830f9b467e7ed3a2d44d2">messages</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">strm_</a>;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span>};</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span>} <span class="comment">// namespace ripple</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="preprocessor">#endif</span></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_1_1Sink_html"><div class="ttname"><a href="classbeast_1_1Journal_1_1Sink.html">beast::Journal::Sink</a></div><div class="ttdoc">Abstraction for the underlying message destination.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00075">Journal.h:76</a></div></div>
@@ -246,12 +248,12 @@ $(function() {
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00054">suite.h:55</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_a19b8ee0ce850d78834984655ae83b20e"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#a19b8ee0ce850d78834984655ae83b20e">beast::unit_test::suite::log</a></div><div class="ttdeci">log_os&lt; char &gt; log</div><div class="ttdoc">Logging output stream.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00152">suite.h:152</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html">ripple::test::StreamSink</a></div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00126">SuiteJournal.h:127</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a03cffe95c68e565b951135f957c9d3f9"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a03cffe95c68e565b951135f957c9d3f9">ripple::test::StreamSink::write</a></div><div class="ttdeci">void write(beast::severities::Severity level, std::string const &amp;text) override</div><div class="ttdoc">Write text to the sink at the specified severity.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00138">SuiteJournal.h:138</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a16e0ad15d5bb8c44f80f7b4af11e67fd"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">ripple::test::StreamSink::strm_</a></div><div class="ttdeci">std::stringstream strm_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00128">SuiteJournal.h:128</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a364fe06c027830f9b467e7ed3a2d44d2"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a364fe06c027830f9b467e7ed3a2d44d2">ripple::test::StreamSink::messages</a></div><div class="ttdeci">std::stringstream const &amp; messages() const</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00153">SuiteJournal.h:153</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a5645125717c854dfa9aabd7323fd9ba3"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3">ripple::test::StreamSink::writeAlways</a></div><div class="ttdeci">void writeAlways(beast::severities::Severity level, std::string const &amp;text) override</div><div class="ttdoc">Bypass filter and write text to the sink at the specified severity.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00146">SuiteJournal.h:146</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_abdcea9eb74b3c8a83d97859ddaabdcd3"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#abdcea9eb74b3c8a83d97859ddaabdcd3">ripple::test::StreamSink::StreamSink</a></div><div class="ttdeci">StreamSink(beast::severities::Severity threshold=beast::severities::kDebug)</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00131">SuiteJournal.h:131</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html">ripple::test::StreamSink</a></div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00128">SuiteJournal.h:129</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a03cffe95c68e565b951135f957c9d3f9"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a03cffe95c68e565b951135f957c9d3f9">ripple::test::StreamSink::write</a></div><div class="ttdeci">void write(beast::severities::Severity level, std::string const &amp;text) override</div><div class="ttdoc">Write text to the sink at the specified severity.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00140">SuiteJournal.h:140</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a16e0ad15d5bb8c44f80f7b4af11e67fd"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a16e0ad15d5bb8c44f80f7b4af11e67fd">ripple::test::StreamSink::strm_</a></div><div class="ttdeci">std::stringstream strm_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00130">SuiteJournal.h:130</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a364fe06c027830f9b467e7ed3a2d44d2"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a364fe06c027830f9b467e7ed3a2d44d2">ripple::test::StreamSink::messages</a></div><div class="ttdeci">std::stringstream const &amp; messages() const</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00155">SuiteJournal.h:155</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_a5645125717c854dfa9aabd7323fd9ba3"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#a5645125717c854dfa9aabd7323fd9ba3">ripple::test::StreamSink::writeAlways</a></div><div class="ttdeci">void writeAlways(beast::severities::Severity level, std::string const &amp;text) override</div><div class="ttdoc">Bypass filter and write text to the sink at the specified severity.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00148">SuiteJournal.h:148</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1StreamSink_html_abdcea9eb74b3c8a83d97859ddaabdcd3"><div class="ttname"><a href="classripple_1_1test_1_1StreamSink.html#abdcea9eb74b3c8a83d97859ddaabdcd3">ripple::test::StreamSink::StreamSink</a></div><div class="ttdeci">StreamSink(beast::severities::Severity threshold=beast::severities::kDebug)</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00133">SuiteJournal.h:133</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournalSink_html"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournalSink.html">ripple::test::SuiteJournalSink</a></div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00030">SuiteJournal.h:31</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournalSink_html_a366f77b1ee0b07d9cee3ce7e34d51b92"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournalSink.html#a366f77b1ee0b07d9cee3ce7e34d51b92">ripple::test::SuiteJournalSink::active</a></div><div class="ttdeci">bool active(beast::severities::Severity level) const override</div><div class="ttdoc">Returns true if text at the passed severity produces output.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00046">SuiteJournal.h:46</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournalSink_html_a6b87ebded00e75b729df558c7e1e8318"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournalSink.html#a6b87ebded00e75b729df558c7e1e8318">ripple::test::SuiteJournalSink::suite_</a></div><div class="ttdeci">beast::unit_test::suite &amp; suite_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00033">SuiteJournal.h:33</a></div></div>
@@ -259,11 +261,13 @@ $(function() {
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournalSink_html_ad3f47513b7b061a17553b14db5f2cc6e"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournalSink.html#ad3f47513b7b061a17553b14db5f2cc6e">ripple::test::SuiteJournalSink::partition_</a></div><div class="ttdeci">std::string partition_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00032">SuiteJournal.h:32</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournalSink_html_ad63d2310128b209b7a997c4e14e96628"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournalSink.html#ad63d2310128b209b7a997c4e14e96628">ripple::test::SuiteJournalSink::write</a></div><div class="ttdeci">void write(beast::severities::Severity level, std::string const &amp;text) override</div><div class="ttdoc">Write text to the sink at the specified severity.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00060">SuiteJournal.h:60</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournalSink_html_aee33f0261c32820acf3f2c942fc89f56"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournalSink.html#aee33f0261c32820acf3f2c942fc89f56">ripple::test::SuiteJournalSink::writeAlways</a></div><div class="ttdeci">void writeAlways(beast::severities::Severity level, std::string const &amp;text) override</div><div class="ttdoc">Bypass filter and write text to the sink at the specified severity.</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00070">SuiteJournal.h:70</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html">ripple::test::SuiteJournal</a></div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00100">SuiteJournal.h:101</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html_a2613822199ee333a44ff6cb0b18309af"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">ripple::test::SuiteJournal::journal_</a></div><div class="ttdeci">beast::Journal journal_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00103">SuiteJournal.h:103</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html_a99eac75534362c52696d744511367b85"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html#a99eac75534362c52696d744511367b85">ripple::test::SuiteJournal::SuiteJournal</a></div><div class="ttdeci">SuiteJournal(std::string const &amp;partition, beast::unit_test::suite &amp;suite, beast::severities::Severity threshold=beast::severities::kFatal)</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00106">SuiteJournal.h:106</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html_ad796abc6826f50d967f282bc066da1fd"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">ripple::test::SuiteJournal::sink_</a></div><div class="ttdeci">SuiteJournalSink sink_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00102">SuiteJournal.h:102</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html">ripple::test::SuiteJournal</a></div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00102">SuiteJournal.h:103</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html_a2613822199ee333a44ff6cb0b18309af"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html#a2613822199ee333a44ff6cb0b18309af">ripple::test::SuiteJournal::journal_</a></div><div class="ttdeci">beast::Journal journal_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00105">SuiteJournal.h:105</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html_a99eac75534362c52696d744511367b85"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html#a99eac75534362c52696d744511367b85">ripple::test::SuiteJournal::SuiteJournal</a></div><div class="ttdeci">SuiteJournal(std::string const &amp;partition, beast::unit_test::suite &amp;suite, beast::severities::Severity threshold=beast::severities::kFatal)</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00108">SuiteJournal.h:108</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html_ad796abc6826f50d967f282bc066da1fd"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html#ad796abc6826f50d967f282bc066da1fd">ripple::test::SuiteJournal::sink_</a></div><div class="ttdeci">SuiteJournalSink sink_</div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00104">SuiteJournal.h:104</a></div></div>
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a></div></div>
<div class="ttc" id="anamespacebeast_1_1severities_html"><div class="ttname"><a href="namespacebeast_1_1severities.html">beast::severities</a></div><div class="ttdoc">A namespace for easy access to logging severity values.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00030">Journal.h:30</a></div></div>
<div class="ttc" id="anamespacebeast_1_1severities_html_a069a8a312b9123b77f6aa31733ca73be"><div class="ttname"><a href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73be">beast::severities::Severity</a></div><div class="ttdeci">Severity</div><div class="ttdoc">Severity level / threshold of a Journal message.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00032">Journal.h:32</a></div></div>
<div class="ttc" id="anamespacebeast_1_1severities_html_a069a8a312b9123b77f6aa31733ca73bea2a7ebee41624279bb6f58f8999ab7b30"><div class="ttname"><a href="namespacebeast_1_1severities.html#a069a8a312b9123b77f6aa31733ca73bea2a7ebee41624279bb6f58f8999ab7b30">beast::severities::kInfo</a></div><div class="ttdeci">@ kInfo</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00037">Journal.h:37</a></div></div>