diff --git a/README.md b/README.md index 9ec8269..82b4529 100644 --- a/README.md +++ b/README.md @@ -2456,9 +2456,9 @@ import logging ```python logging.basicConfig(filename=<path>) # Configures the root logger. logging.debug/info/warning/error/critical(<str>) # Logs to the root logger. -<Logger> = logging.getLogger(__name__) # Creates a logger named after the module. -<Logger>.<level>(<str>) # All messages propagate to the root logger. -<Logger>.exception(<str>) # Appends caught exception and calls error(). +<Logger> = logging.getLogger(__name__) # Logger named after the module. +<Logger>.<level>(<str>) # Messages propagate to the root logger. +<Logger>.exception(<str>) # Calls error() with caught exception. ``` ### Setup diff --git a/index.html b/index.html index cada0af..04b36dd 100644 --- a/index.html +++ b/index.html @@ -2014,9 +2014,9 @@ print(table) <pre><code class="python language-python hljs">logging.basicConfig(filename=<path>) <span class="hljs-comment"># Configures the root logger.</span> logging.debug/info/warning/error/critical(<str>) <span class="hljs-comment"># Logs to the root logger.</span> -<Logger> = logging.getLogger(__name__) <span class="hljs-comment"># Creates a logger named after the module.</span> -<Logger>.<level>(<str>) <span class="hljs-comment"># All messages propagate to the root logger.</span> -<Logger>.exception(<str>) <span class="hljs-comment"># Appends caught exception and calls error().</span> +<Logger> = logging.getLogger(__name__) <span class="hljs-comment"># Logger named after the module.</span> +<Logger>.<level>(<str>) <span class="hljs-comment"># Messages propagate to the root logger.</span> +<Logger>.exception(<str>) <span class="hljs-comment"># Calls error() with caught exception.</span> </code></pre> <div><h3 id="setup">Setup</h3><pre><code class="python language-python hljs">logging.basicConfig( filename=<span class="hljs-keyword">None</span>, <span class="hljs-comment"># Logs to console by default.</span>