Skip to content

Commit 1d24c12

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent 4ef7732 commit 1d24c12

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

library/logging.po

+30-1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ msgid ""
153153
"modules, all the way up to the highest-level logger known as the root "
154154
"logger; this approach is known as hierarchical logging."
155155
msgstr ""
156+
"この慣用的な使い方における重要な特色は、大部分のコードは "
157+
"``getLogger(__name__)`` で単にモジュールレベルのロガーを作るだけで、そのロ"
158+
"ガーを必要なロギングに使えるということです。これは簡潔であると同時に、下位の"
159+
"コードにおいて、必要に応じてきめ細やかな制御を可能にしています。モジュールレ"
160+
"ベルのロガーに対するログメッセージは、最終的にルートロガーとして知られる最上"
161+
"位のロガーに達するまで順次転送されます。ロギングに対するこのようなアプローチ"
162+
"は、階層的ロギングとして知られています。"
156163

157164
#: ../../library/logging.rst:74
158165
msgid ""
@@ -164,6 +171,14 @@ msgid ""
164171
"messages to its handlers. :func:`~logging.basicConfig` provides a quick way "
165172
"to configure the root logger that handles many use cases."
166173
msgstr ""
174+
"ロギングを有用なものとするためには、用途に応じて構成する必要があります: ログ"
175+
"レベルの設定や各ロガーの出力先から、潜在的には特定のモジュールに対する振る舞"
176+
"いの変更などを、しばしばコマンドライン引数かアプリケーションの構成の一部とし"
177+
"て。上記の例を含めて、ほとんどの場合ではルートロガーのみを構成するだけで十分"
178+
"です。なぜならモジュールレベルの全ての下位のロガーは、全てのメッセージを最終"
179+
"的にルートロガーのハンドラに転送するからです。 :func:`~logging.basicConfig` "
180+
"は、多くのユースケースを上手に扱うことのできる簡便なルートロガーの構成方法を"
181+
"提供します。"
167182

168183
#: ../../library/logging.rst:82
169184
msgid ""
@@ -180,6 +195,8 @@ msgid ""
180195
"The basic classes defined by the module, together with their attributes and "
181196
"methods, are listed in the sections below."
182197
msgstr ""
198+
"モジュールで定義されている基本的なクラスと、その属性およびメソッドを以下に列"
199+
"挙します。"
183200

184201
#: ../../library/logging.rst:89
185202
msgid "Loggers expose the interface that application code directly uses."
@@ -236,16 +253,28 @@ msgid ""
236253
"getLogger(__name__)``. That's because in a module, ``__name__`` is the "
237254
"module's name in the Python package namespace."
238255
msgstr ""
256+
"``name`` は、潜在的に ``foo.bar.baz`` のようなピリオドで区切られた階層的な値"
257+
"です (ただし、たとえば ``foo`` のような単純な値も可能です)。階層構造の下位に"
258+
"あるロガーは、上位のロガーの子になります。たとえば ``foo`` という名前のロガー"
259+
"に対して、 ``foo.bar``、 ``foo.bar.baz``、 ``foo.bam`` という名前のロガーは全"
260+
"て ``foo`` の子孫です。さらに、全てのロガーはルートロガーの子孫です。ロガー名"
261+
"の階層構造は Python パッケージの階層構造に類似しています。また、推奨される構"
262+
"築方法である ``logging.getLogger(__name__)`` を使ってモジュール単位でロガーを"
263+
"構築すれば、パッケージの階層構造とロガーの階層構造は同一になります。なぜな"
264+
"ら、モジュールの中で、 ``__name__`` は Python パッケージの名前空間におけるモ"
265+
"ジュール名だからです。"
239266

240267
#: ../../library/logging.rst:123
241268
msgid ""
242269
"This is the logger's name, and is the value that was passed to :func:"
243270
"`getLogger` to obtain the logger."
244271
msgstr ""
272+
"ロガーの名前です。また、ロガーを取得するために :func:`getLogger` を呼び出すと"
273+
"きに渡された値です。"
245274

246275
#: ../../library/logging.rst:126 ../../library/logging.rst:186
247276
msgid "This attribute should be treated as read-only."
248-
msgstr ""
277+
msgstr "この属性は読み出し専用として扱われるべきです。"
249278

250279
#: ../../library/logging.rst:130
251280
msgid "The threshold of this logger, as set by the :meth:`setLevel` method."

0 commit comments

Comments
 (0)