8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.12\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2023-10-11 17:13 +0000\n "
11
+ "POT-Creation-Date : 2024-02-02 00:03 +0000\n "
12
12
"PO-Revision-Date : 2018-05-23 14:36+0000\n "
13
13
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
14
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -711,10 +711,10 @@ msgstr ""
711
711
msgid ""
712
712
"The :meth:`~Handler.setLevel` method, just as in logger objects, specifies "
713
713
"the lowest severity that will be dispatched to the appropriate destination. "
714
- "Why are there two :func:` setLevel` methods? The level set in the logger "
715
- "determines which severity of messages it will pass to its handlers. The "
716
- "level set in each handler determines which messages that handler will send "
717
- "on."
714
+ "Why are there two :meth:`~Handler. setLevel` methods? The level set in the "
715
+ "logger determines which severity of messages it will pass to its handlers. "
716
+ "The level set in each handler determines which messages that handler will "
717
+ "send on."
718
718
msgstr ""
719
719
720
720
#: ../../howto/logging.rst:528
@@ -923,46 +923,40 @@ msgstr ""
923
923
msgid ""
924
924
"If no logging configuration is provided, it is possible to have a situation "
925
925
"where a logging event needs to be output, but no handlers can be found to "
926
- "output the event. The behaviour of the logging package in these "
927
- "circumstances is dependent on the Python version."
926
+ "output the event."
928
927
msgstr ""
929
928
930
- #: ../../howto/logging.rst:781
929
+ #: ../../howto/logging.rst:780
930
+ msgid ""
931
+ "The event is output using a 'handler of last resort', stored in :data:"
932
+ "`lastResort`. This internal handler is not associated with any logger, and "
933
+ "acts like a :class:`~logging.StreamHandler` which writes the event "
934
+ "description message to the current value of ``sys.stderr`` (therefore "
935
+ "respecting any redirections which may be in effect). No formatting is done "
936
+ "on the message - just the bare event description message is printed. The "
937
+ "handler's level is set to ``WARNING``, so all events at this and greater "
938
+ "severities will be output."
939
+ msgstr ""
940
+
941
+ #: ../../howto/logging.rst:791
931
942
msgid "For versions of Python prior to 3.2, the behaviour is as follows:"
932
943
msgstr ""
933
944
934
- #: ../../howto/logging.rst:783
945
+ #: ../../howto/logging.rst:793
935
946
msgid ""
936
- "If *logging. raiseExceptions* is ``False`` (production mode), the event is "
947
+ "If :data:` raiseExceptions` is ``False`` (production mode), the event is "
937
948
"silently dropped."
938
949
msgstr ""
939
950
940
- #: ../../howto/logging.rst:786
951
+ #: ../../howto/logging.rst:796
941
952
msgid ""
942
- "If *logging. raiseExceptions* is ``True`` (development mode), a message 'No "
953
+ "If :data:` raiseExceptions` is ``True`` (development mode), a message 'No "
943
954
"handlers could be found for logger X.Y.Z' is printed once."
944
955
msgstr ""
945
956
946
- #: ../../howto/logging.rst:789
947
- msgid "In Python 3.2 and later, the behaviour is as follows:"
948
- msgstr ""
949
-
950
- #: ../../howto/logging.rst:791
951
- msgid ""
952
- "The event is output using a 'handler of last resort', stored in ``logging."
953
- "lastResort``. This internal handler is not associated with any logger, and "
954
- "acts like a :class:`~logging.StreamHandler` which writes the event "
955
- "description message to the current value of ``sys.stderr`` (therefore "
956
- "respecting any redirections which may be in effect). No formatting is done "
957
- "on the message - just the bare event description message is printed. The "
958
- "handler's level is set to ``WARNING``, so all events at this and greater "
959
- "severities will be output."
960
- msgstr ""
961
-
962
- #: ../../howto/logging.rst:800
957
+ #: ../../howto/logging.rst:799
963
958
msgid ""
964
- "To obtain the pre-3.2 behaviour, ``logging.lastResort`` can be set to "
965
- "``None``."
959
+ "To obtain the pre-3.2 behaviour, :data:`lastResort` can be set to ``None``."
966
960
msgstr ""
967
961
968
962
#: ../../howto/logging.rst:805
@@ -1267,8 +1261,8 @@ msgstr ""
1267
1261
1268
1262
#: ../../howto/logging.rst:1001
1269
1263
msgid ""
1270
- "For formatting multiple messages in a batch, instances of :class:`~handlers. "
1271
- "BufferingFormatter` can be used. In addition to the format string (which is "
1264
+ "For formatting multiple messages in a batch, instances of :class:"
1265
+ "` BufferingFormatter` can be used. In addition to the format string (which is "
1272
1266
"applied to each message in the batch), there is provision for header and "
1273
1267
"trailer format strings."
1274
1268
msgstr ""
@@ -1318,19 +1312,19 @@ msgid ""
1318
1312
"the exception is swallowed."
1319
1313
msgstr ""
1320
1314
1321
- #: ../../howto/logging.rst:1038
1315
+ #: ../../howto/logging.rst:1039
1322
1316
msgid ""
1323
1317
"The default value of :data:`raiseExceptions` is ``True``. This is because "
1324
1318
"during development, you typically want to be notified of any exceptions that "
1325
1319
"occur. It's advised that you set :data:`raiseExceptions` to ``False`` for "
1326
1320
"production usage."
1327
1321
msgstr ""
1328
1322
1329
- #: ../../howto/logging.rst:1048
1323
+ #: ../../howto/logging.rst:1049
1330
1324
msgid "Using arbitrary objects as messages"
1331
1325
msgstr ""
1332
1326
1333
- #: ../../howto/logging.rst:1050
1327
+ #: ../../howto/logging.rst:1051
1334
1328
msgid ""
1335
1329
"In the preceding sections and examples, it has been assumed that the message "
1336
1330
"passed when logging the event is a string. However, this is not the only "
@@ -1342,11 +1336,11 @@ msgid ""
1342
1336
"the wire."
1343
1337
msgstr ""
1344
1338
1345
- #: ../../howto/logging.rst:1061
1339
+ #: ../../howto/logging.rst:1062
1346
1340
msgid "Optimization"
1347
1341
msgstr ""
1348
1342
1349
- #: ../../howto/logging.rst:1063
1343
+ #: ../../howto/logging.rst:1064
1350
1344
msgid ""
1351
1345
"Formatting of message arguments is deferred until it cannot be avoided. "
1352
1346
"However, computing the arguments passed to the logging method can also be "
@@ -1357,13 +1351,13 @@ msgid ""
1357
1351
"code like this::"
1358
1352
msgstr ""
1359
1353
1360
- #: ../../howto/logging.rst:1075
1354
+ #: ../../howto/logging.rst:1076
1361
1355
msgid ""
1362
- "so that if the logger's threshold is set above ``DEBUG``, the calls to :func: "
1363
- "`expensive_func1` and :func:` expensive_func2` are never made."
1356
+ "so that if the logger's threshold is set above ``DEBUG``, the calls to "
1357
+ "`` expensive_func1`` and `` expensive_func2` ` are never made."
1364
1358
msgstr ""
1365
1359
1366
- #: ../../howto/logging.rst:1078
1360
+ #: ../../howto/logging.rst:1079
1367
1361
msgid ""
1368
1362
"In some cases, :meth:`~Logger.isEnabledFor` can itself be more expensive "
1369
1363
"than you'd like (e.g. for deeply nested loggers where an explicit level is "
@@ -1375,102 +1369,102 @@ msgid ""
1375
1369
"while the application is running (which is not all that common)."
1376
1370
msgstr ""
1377
1371
1378
- #: ../../howto/logging.rst:1087
1372
+ #: ../../howto/logging.rst:1088
1379
1373
msgid ""
1380
1374
"There are other optimizations which can be made for specific applications "
1381
1375
"which need more precise control over what logging information is collected. "
1382
1376
"Here's a list of things you can do to avoid processing during logging which "
1383
1377
"you don't need:"
1384
1378
msgstr ""
1385
1379
1386
- #: ../../howto/logging.rst:1093
1380
+ #: ../../howto/logging.rst:1094
1387
1381
msgid "What you don't want to collect"
1388
1382
msgstr ""
1389
1383
1390
- #: ../../howto/logging.rst:1093
1384
+ #: ../../howto/logging.rst:1094
1391
1385
msgid "How to avoid collecting it"
1392
1386
msgstr ""
1393
1387
1394
- #: ../../howto/logging.rst:1095
1388
+ #: ../../howto/logging.rst:1096
1395
1389
msgid "Information about where calls were made from."
1396
1390
msgstr ""
1397
1391
1398
- #: ../../howto/logging.rst:1095
1392
+ #: ../../howto/logging.rst:1096
1399
1393
msgid ""
1400
1394
"Set ``logging._srcfile`` to ``None``. This avoids calling :func:`sys."
1401
1395
"_getframe`, which may help to speed up your code in environments like PyPy "
1402
1396
"(which can't speed up code that uses :func:`sys._getframe`)."
1403
1397
msgstr ""
1404
1398
1405
- #: ../../howto/logging.rst:1101
1399
+ #: ../../howto/logging.rst:1102
1406
1400
msgid "Threading information."
1407
1401
msgstr ""
1408
1402
1409
- #: ../../howto/logging.rst:1101
1403
+ #: ../../howto/logging.rst:1102
1410
1404
msgid "Set ``logging.logThreads`` to ``False``."
1411
1405
msgstr ""
1412
1406
1413
- #: ../../howto/logging.rst:1103
1407
+ #: ../../howto/logging.rst:1104
1414
1408
msgid "Current process ID (:func:`os.getpid`)"
1415
1409
msgstr ""
1416
1410
1417
- #: ../../howto/logging.rst:1103
1411
+ #: ../../howto/logging.rst:1104
1418
1412
msgid "Set ``logging.logProcesses`` to ``False``."
1419
1413
msgstr ""
1420
1414
1421
- #: ../../howto/logging.rst:1105
1415
+ #: ../../howto/logging.rst:1106
1422
1416
msgid ""
1423
1417
"Current process name when using ``multiprocessing`` to manage multiple "
1424
1418
"processes."
1425
1419
msgstr ""
1426
1420
1427
- #: ../../howto/logging.rst:1105
1421
+ #: ../../howto/logging.rst:1106
1428
1422
msgid "Set ``logging.logMultiprocessing`` to ``False``."
1429
1423
msgstr ""
1430
1424
1431
- #: ../../howto/logging.rst:1108
1425
+ #: ../../howto/logging.rst:1109
1432
1426
msgid "Current :class:`asyncio.Task` name when using ``asyncio``."
1433
1427
msgstr ""
1434
1428
1435
- #: ../../howto/logging.rst:1108
1429
+ #: ../../howto/logging.rst:1109
1436
1430
msgid "Set ``logging.logAsyncioTasks`` to ``False``."
1437
1431
msgstr ""
1438
1432
1439
- #: ../../howto/logging.rst:1112
1433
+ #: ../../howto/logging.rst:1113
1440
1434
msgid ""
1441
1435
"Also note that the core logging module only includes the basic handlers. If "
1442
1436
"you don't import :mod:`logging.handlers` and :mod:`logging.config`, they "
1443
1437
"won't take up any memory."
1444
1438
msgstr ""
1445
1439
1446
- #: ../../howto/logging.rst:1119
1440
+ #: ../../howto/logging.rst:1120
1447
1441
msgid "Other resources"
1448
1442
msgstr ""
1449
1443
1450
- #: ../../howto/logging.rst:1124
1444
+ #: ../../howto/logging.rst:1125
1451
1445
msgid "Module :mod:`logging`"
1452
1446
msgstr ":mod:`logging` 模組"
1453
1447
1454
- #: ../../howto/logging.rst:1124
1448
+ #: ../../howto/logging.rst:1125
1455
1449
msgid "API reference for the logging module."
1456
1450
msgstr ""
1457
1451
1458
- #: ../../howto/logging.rst:1127
1452
+ #: ../../howto/logging.rst:1128
1459
1453
msgid "Module :mod:`logging.config`"
1460
1454
msgstr ":mod:`logging.config` 模組"
1461
1455
1462
- #: ../../howto/logging.rst:1127
1456
+ #: ../../howto/logging.rst:1128
1463
1457
msgid "Configuration API for the logging module."
1464
1458
msgstr ""
1465
1459
1466
- #: ../../howto/logging.rst:1130
1460
+ #: ../../howto/logging.rst:1131
1467
1461
msgid "Module :mod:`logging.handlers`"
1468
1462
msgstr ":mod:`logging.handlers` 模組"
1469
1463
1470
- #: ../../howto/logging.rst:1130
1464
+ #: ../../howto/logging.rst:1131
1471
1465
msgid "Useful handlers included with the logging module."
1472
1466
msgstr ""
1473
1467
1474
- #: ../../howto/logging.rst:1132
1468
+ #: ../../howto/logging.rst:1133
1475
1469
msgid ":ref:`A logging cookbook <logging-cookbook>`"
1476
1470
msgstr ""
0 commit comments