<p>Hi QiaoAn, thanks for looking into that. The <code>Log</code> class in <code>src/mlpack/core/util/</code>, which is what <code>Log::Debug</code>, <code>Log::Info</code>, and <code>Log::Warn</code> are, can be disabled like so:</p>
<p><code>Log::Debug.ignoreInput = true;</code></p>
<p>But certainly we don't want to put three ignoreInput lines at the top of every test case. Instead it may be better to modify the <code>Log</code> code so that ignoreInput defaults to true if a Boost test is being compiled (a user who is writing tests should be able to override this option, so that they can get output from <code>Log</code> if they want).</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/344#issuecomment-74871656">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFEQZfxZQnYS9X5x_ISQ29lrne_5dks5ntJi9gaJpZM4DM5jt.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/issues/344#issuecomment-74871656"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>