@@ -258,12 +258,15 @@ msgid ""
258
258
"flushed and closed and the file opened again, typically as a precursor to "
259
259
"outputting the record to the file."
260
260
msgstr ""
261
+ "ファイルが変更されていないかチェックします。\n"
262
+ "もし変更されていれば、手始めにレコードをファイルに出力し、既存のストリームはフラッシュして閉じられ、ファイルが再度開かれます。"
261
263
262
264
#: ../../library/logging.handlers.rst:181
263
265
msgid ""
264
266
"Outputs the record to the file, but first calls :meth:`reopenIfNeeded` to "
265
267
"reopen the file if it has changed."
266
268
msgstr ""
269
+ "レコードをファイルに出力しますが、最初に :meth:`reopenIfNeeded` を呼び出して、変更があった場合はファイルを再度開きます。"
267
270
268
271
#: ../../library/logging.handlers.rst:187
269
272
msgid "BaseRotatingHandler"
@@ -435,6 +438,13 @@ msgid ""
435
438
"etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` "
436
439
"etc. respectively."
437
440
msgstr ""
441
+ "*maxBytes* および *backupCount* 値を指定することで、あらかじめ決められたサイズでファイルをロールオーバ (:dfn:`rollover`) させることができます。\n"
442
+ "指定サイズを超えそうになると、ファイルは閉じられ、暗黙のうちに新たなファイルが開かれます。\n"
443
+ "ロールオーバは現在のログファイルの長さが *maxBytes* に近くなると常に起きますが、 *maxBytes* または *backupCount* がゼロならロールオーバは起きなくなってしまうので、一般的には *backupCount* を少なくとも 1 に設定し *maxBytes* を非ゼロにするのが良いでしょう。\n"
444
+ "*backupCount* が非ゼロのとき、システムは古いログファイルをファイル名に \" .1\" , \" .2\" といった拡張子を追加して保存します。\n"
445
+ "例えば、 *backupCount* が 5 で、基本のファイル名が :file:`app.log` なら、 :file:`app.log`, :file:`app.log.1`, :file:`app.log.2` ... と続き、 :file:`app.log.5` までを得ることになります。\n"
446
+ "ログの書き込み対象になるファイルは常に :file:`app.log` です。このファイルが満杯になると、ファイルは閉じられ、 :file:`app.log.1` に名前が変更されます。\n"
447
+ ":file:`app.log.1`, :file:`app.log.2` などが存在する場合、それらのファイルはそれぞれ :file:`app.log.2`, :file:`app.log.3` といった具合に名前が変更されます。"
438
448
439
449
#: ../../library/logging.handlers.rst:303
440
450
#: ../../library/logging.handlers.rst:403
0 commit comments