mirror of https://github.com/vapor/docs.git
build
This commit is contained in:
parent
2085b2662d
commit
efa5f32fbb
|
|
@ -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"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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("Informational log")
|
||||
<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">"Informational log"</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">¶</a></h2>
|
||||
<p>Create your own logger by conforming to <code>LogProtocol</code>. </p>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue