|
|
@ -1499,7 +1499,7 @@ logger.<level>(<span class="hljs-string">'A logging message.'</span>) |
|
|
|
<p><strong>Error description, stack trace and values of variables are appended automatically.</strong></p> |
|
|
|
<pre><code class="python language-python hljs"><span class="hljs-keyword">try</span>: |
|
|
|
... |
|
|
|
<span class="hljs-keyword">except</span> <Exception>: |
|
|
|
<span class="hljs-keyword">except</span> <exception>: |
|
|
|
logger.exception(<span class="hljs-string">'An error happened.'</span>) |
|
|
|
</code></pre> |
|
|
|
<h3 id="rotation">Rotation</h3> |
|
|
|