File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1671,7 +1671,7 @@ msgstr "根据命令行参数确定日志级别"
16711671msgid ""
16721672"Dispatch to multiple subcommands in separate files, all logging at the same "
16731673"level in a consistent way"
1674- msgstr ""
1674+ msgstr "在单独的文件中分发多条子命令,同一级别的子命令均以一致的方式记录。 "
16751675
16761676#: ../../howto/logging-cookbook.rst:2599
16771677msgid "Make use of simple, minimal configuration"
@@ -1687,20 +1687,23 @@ msgid ""
16871687"verbosity of the application via a command-line argument, defaulting to "
16881688"``logging.INFO``. Here's one way that ``app.py`` could be written::"
16891689msgstr ""
1690+ "假定有一个命令行应用程序,用于停止、启动或重新启动某些服务。为了便于演示,不妨将 ``app.py`` 作为应用程序的主代码文件,并在 "
1691+ "``start.py``、 ``stop.py``和 ``restart.py`` "
1692+ "中实现单独的命令。再假定要通过命令行参数控制应用程序的日志粒度,默认为 ``logging.INFO`` 。以下是 ``app.py`` 的一个示例:"
16901693
16911694#: ../../howto/logging-cookbook.rst:2650
16921695msgid ""
16931696"And the ``start``, ``stop`` and ``restart`` commands can be implemented in "
16941697"separate modules, like so for starting::"
1695- msgstr ""
1698+ msgstr "``start``、``stop`` 和 ``restart`` 命令可以在单独的模块中实现,启动命令的代码可如下: "
16961699
16971700#: ../../howto/logging-cookbook.rst:2663
16981701msgid "and thus for stopping::"
1699- msgstr ""
1702+ msgstr "然后是停止命令的代码: "
17001703
17011704#: ../../howto/logging-cookbook.rst:2684
17021705msgid "and similarly for restarting::"
1703- msgstr ""
1706+ msgstr "重启命令类似: "
17041707
17051708#: ../../howto/logging-cookbook.rst:2705
17061709msgid ""
You can’t perform that action at this time.
0 commit comments