ch to this main logger.  Therefore
in child class and code, the usage of environmental definition <code class="docutils literal notranslate"><span class="pre">__main__</span></code></p>
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">log</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="s2">&quot;__main__&quot;</span><span class="p">)</span>
</pre></div>