Skip to content

Commit 476ed1f

Browse files
committed
[feat] Show 同一性
1 parent 6dbf269 commit 476ed1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/pyconshizu/library-logging.rst.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777

7878
シングルトンなので都度 ``getLogger`` !(`避けるべきパターン <https://docs.python.org/ja/3/howto/logging-cookbook.html#using-loggers-as-attributes-in-a-class-or-passing-them-as-parameters>`__ も参照)
7979

80+
.. code-block:: pycon
81+
82+
>>> logging.getLogger("mylib") is logging.getLogger("mylib")
83+
True
84+
8085
ロガーの親子関係
8186
--------------------------------------------------
8287

0 commit comments

Comments
 (0)