This commit is contained in:
tanner0101 2017-05-19 12:21:04 +01:00
parent 2085b2662d
commit efa5f32fbb
2 changed files with 11 additions and 9 deletions

View File

@ -652,7 +652,7 @@
},
{
"location": "/vapor/log/",
"text": "Log information using \ndrop.log\n.\n\n\ndrop.log.info(\nInformational log\n)\n\n\n\n\n\nLog types supported are:\n- info\n- warning\n- verbose\n- debug\n- error\n- fatal\n\n\nProtocol\n\n\nCreate your own logger by conforming to \nLogProtocol\n.",
"text": "Log information using \ndrop.log\n.\n\n\ndrop\n.\nlog\n.\ninfo\n(\nInformational log\n)\n\n\n\n\n\n\nLog types supported are:\n\n\n\n\ninfo\n\n\nwarning\n\n\nverbose\n\n\ndebug\n\n\nerror\n\n\nfatal\n\n\n\n\nProtocol\n\n\nCreate your own logger by conforming to \nLogProtocol\n.",
"title": "Log"
},
{

View File

@ -1504,17 +1504,19 @@
<h1>Log</h1>
<p>Log information using <code>drop.log</code>.</p>
<div class="codehilite"><pre><span></span>drop.log.info(&quot;Informational log&quot;)
<div class="codehilite"><pre><span></span><span class="n">drop</span><span class="p">.</span><span class="n">log</span><span class="p">.</span><span class="n">info</span><span class="p">(</span><span class="s">&quot;Informational log&quot;</span><span class="p">)</span>
</pre></div>
<p>Log types supported are:
- info
- warning
- verbose
- debug
- error
- fatal</p>
<p>Log types supported are:</p>
<ul>
<li>info</li>
<li>warning</li>
<li>verbose</li>
<li>debug</li>
<li>error</li>
<li>fatal</li>
</ul>
<h2 id="protocol">Protocol<a class="headerlink" href="#protocol" title="Permanent link">&para;</a></h2>
<p>Create your own logger by conforming to <code>LogProtocol</code>. </p>