Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 893cedd

Browse files
committed
[po] auto sync bot
1 parent 5c4526c commit 893cedd

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

howto/logging-cookbook.po

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# 欢 王 <[email protected]>, 2018
99
# Meng Du <[email protected]>, 2019
1010
# MuSheng Chen <[email protected]>, 2019
11-
# Freesand Leo <[email protected]>, 2019
1211
# 非法操作 <[email protected]>, 2019
12+
# Freesand Leo <[email protected]>, 2019
1313
#
1414
#, fuzzy
1515
msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818
"Report-Msgid-Bugs-To: \n"
1919
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
2020
"PO-Revision-Date: 2017-02-16 17:45+0000\n"
21-
"Last-Translator: 非法操作 <ultrahe@gmail.com>, 2019\n"
21+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
2222
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -477,8 +477,12 @@ msgid ""
477477
" and includes a working socket receiver which can be used as a starting "
478478
"point for you to adapt in your own applications."
479479
msgstr ""
480-
"尽管logging是线程安全的,将单个进程中的多个线程日志记录至单个文件也是支持的,但通过多个进程记录至单个文件却是不支持的,因为在Python中没有标准的方案在多个进程中去序列化数据至一个文件。如果你需要将多个进程记录至单个文件,有一个方案是让所有的进程都记录日志至:class:`~handlers.SocketHandler`,然后用一个单独的实现了套接字服务器的进程一边从套接字中读取一遍记录至日志文件。(如果你愿意,也可以在一个现有进程的单独线程中执行此工作)文档:ref:`This"
481-
" section 1`中有更详细的介绍并包括一个可以运行的套接字接收器,可以作为基础去适配你自己的程序。"
480+
"尽管 logging 是线程安全的,将单个进程中的多个线程日志记录至单个文件也 *是* 受支持的,但将 *多个进程* 中的日志记录至单个文件则 *不是*"
481+
" 受支持的,因为在 Python 中并没有在多个进程中实现对单个文件访问的序列化的标准方案。 "
482+
"如果你需要将多个进程中的日志记录至单个文件,有一个方案是让所有进程都将日志记录至一个 "
483+
":class:`~handlers.SocketHandler`,然后用一个实现了套接字服务器的单独进程一边从套接字中读取一边将日志记录至文件。 "
484+
"(如果愿意的话,你可以在一个现有进程中专门开一个线程来执行此项功能。) :ref:`这一部分 <network-logging>` "
485+
"文档对此方式有更详细的介绍,并包含一个可用的套接字接收器,你自己的应用可以在此基础上进行适配。"
482486

483487
#: ../../howto/logging-cookbook.rst:724
484488
msgid ""
@@ -491,9 +495,11 @@ msgid ""
491495
":mod:`multiprocessing` module does not provide working lock functionality on"
492496
" all platforms (see https://bugs.python.org/issue3770)."
493497
msgstr ""
494-
"如果你使用的是最近一些版本的Python包含了:mod:`multiprocessing`模块的,你也可以使用:class:`~multiprocessing.Lock`写自己的处理程序让其从多个进程中按顺序记录至文件。现有的"
495-
" :class:`FileHandler` 和它的子类目前没有使用:mod:`multiprocessing` "
496-
",尽管将来可能会这样做。请注意目前:mod:`multiprocessing`模块并非在所有平台上提供锁的功能(查阅https://bugs.python.org/issue3770)。"
498+
"如果你使用的是包含了 :mod:`multiprocessing` 模块的较新版本的 Python,你也可以使用 "
499+
":class:`~multiprocessing.Lock` 来编写自己的处理程序让其从多个进程中按顺序记录至文件。 现有的 "
500+
":class:`FileHandler` 和它的子类目前没有使用 :mod:`multiprocessing`,尽管将来可能会这样做。 请注意目前 "
501+
":mod:`multiprocessing` 模块并非在所有平台上提供可用的锁功能 (参见 "
502+
"https://bugs.python.org/issue3770)。"
497503

498504
#: ../../howto/logging-cookbook.rst:735
499505
msgid ""

0 commit comments

Comments
 (0)