6
6
msgstr ""
7
7
"Project-Id-Version : Python 3.12\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
- "POT-Creation-Date : 2024-05-09 00:03+0000\n "
9
+ "POT-Creation-Date : 2024-08-03 00:03+0000\n "
10
10
"PO-Revision-Date : 2018-05-23 16:05+0000\n "
11
11
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -867,84 +867,91 @@ msgstr ""
867
867
868
868
#: ../../library/logging.config.rst:755
869
869
msgid ""
870
- "An actual instance of :class:`queue.Queue` or a subclass thereof. This is of "
871
- "course only possible if you are constructing or modifying the configuration "
872
- "dictionary in code."
870
+ "An object implementing the :class:`queue.Queue` public API. For instance, "
871
+ "this may be an actual instance of :class:`queue.Queue` or a subclass "
872
+ "thereof, or a proxy obtained by :meth:`multiprocessing.managers.SyncManager."
873
+ "Queue`."
873
874
msgstr ""
874
875
875
876
#: ../../library/logging.config.rst:759
876
877
msgid ""
878
+ "This is of course only possible if you are constructing or modifying the "
879
+ "configuration dictionary in code."
880
+ msgstr ""
881
+
882
+ #: ../../library/logging.config.rst:762
883
+ msgid ""
877
884
"A string that resolves to a callable which, when called with no arguments, "
878
885
"returns the :class:`queue.Queue` instance to use. That callable could be a :"
879
886
"class:`queue.Queue` subclass or a function which returns a suitable queue "
880
887
"instance, such as ``my.module.queue_factory()``."
881
888
msgstr ""
882
889
883
- #: ../../library/logging.config.rst:764
890
+ #: ../../library/logging.config.rst:767
884
891
msgid ""
885
892
"A dict with a ``'()'`` key which is constructed in the usual way as "
886
893
"discussed in :ref:`logging-config-dict-userdef`. The result of this "
887
894
"construction should be a :class:`queue.Queue` instance."
888
895
msgstr ""
889
896
890
- #: ../../library/logging.config.rst:768
897
+ #: ../../library/logging.config.rst:771
891
898
msgid ""
892
899
"If the ``queue`` key is absent, a standard unbounded :class:`queue.Queue` "
893
900
"instance is created and used."
894
901
msgstr ""
895
902
896
- #: ../../library/logging.config.rst:771
903
+ #: ../../library/logging.config.rst:774
897
904
msgid ""
898
905
"If the ``listener`` key is present, the corresponding value can be one of "
899
906
"the following:"
900
907
msgstr ""
901
908
902
- #: ../../library/logging.config.rst:773
909
+ #: ../../library/logging.config.rst:776
903
910
msgid ""
904
911
"A subclass of :class:`logging.handlers.QueueListener`. This is of course "
905
912
"only possible if you are constructing or modifying the configuration "
906
913
"dictionary in code."
907
914
msgstr ""
908
915
909
- #: ../../library/logging.config.rst:777
916
+ #: ../../library/logging.config.rst:780
910
917
msgid ""
911
918
"A string which resolves to a class which is a subclass of ``QueueListener``, "
912
919
"such as ``'my.package.CustomListener'``."
913
920
msgstr ""
914
921
915
- #: ../../library/logging.config.rst:780
922
+ #: ../../library/logging.config.rst:783
916
923
msgid ""
917
924
"A dict with a ``'()'`` key which is constructed in the usual way as "
918
925
"discussed in :ref:`logging-config-dict-userdef`. The result of this "
919
926
"construction should be a callable with the same signature as the "
920
927
"``QueueListener`` initializer."
921
928
msgstr ""
922
929
923
- #: ../../library/logging.config.rst:784
930
+ #: ../../library/logging.config.rst:787
924
931
msgid ""
925
932
"If the ``listener`` key is absent, :class:`logging.handlers.QueueListener` "
926
933
"is used."
927
934
msgstr ""
928
935
929
- #: ../../library/logging.config.rst:786
936
+ #: ../../library/logging.config.rst:789
930
937
msgid ""
931
938
"The values under the ``handlers`` key are the names of other handlers in the "
932
939
"configuration (not shown in the above snippet) which will be passed to the "
933
940
"queue listener."
934
941
msgstr ""
935
942
936
- #: ../../library/logging.config.rst:790
943
+ #: ../../library/logging.config.rst:793
937
944
msgid ""
938
945
"Any custom queue handler and listener classes will need to be defined with "
939
946
"the same initialization signatures as :class:`~logging.handlers."
940
947
"QueueHandler` and :class:`~logging.handlers.QueueListener`."
941
948
msgstr ""
942
949
943
- #: ../../library/logging.config.rst:799
950
+ #: ../../library/logging.config.rst:802
944
951
msgid "Configuration file format"
945
952
msgstr ""
946
953
947
- #: ../../library/logging.config.rst:801
954
+ #: ../../library/logging.config.rst:804
948
955
msgid ""
949
956
"The configuration file format understood by :func:`fileConfig` is based on :"
950
957
"mod:`configparser` functionality. The file must contain sections called "
@@ -961,7 +968,7 @@ msgid ""
961
968
"specified in a section called ``[logger_root]``."
962
969
msgstr ""
963
970
964
- #: ../../library/logging.config.rst:816
971
+ #: ../../library/logging.config.rst:819
965
972
msgid ""
966
973
"The :func:`fileConfig` API is older than the :func:`dictConfig` API and does "
967
974
"not provide functionality to cover certain aspects of logging. For example, "
@@ -974,39 +981,39 @@ msgid ""
974
981
"when it's convenient to do so."
975
982
msgstr ""
976
983
977
- #: ../../library/logging.config.rst:826
984
+ #: ../../library/logging.config.rst:829
978
985
msgid "Examples of these sections in the file are given below."
979
986
msgstr ""
980
987
981
- #: ../../library/logging.config.rst:839
988
+ #: ../../library/logging.config.rst:842
982
989
msgid ""
983
990
"The root logger must specify a level and a list of handlers. An example of a "
984
991
"root logger section is given below."
985
992
msgstr ""
986
993
987
- #: ../../library/logging.config.rst:848
994
+ #: ../../library/logging.config.rst:851
988
995
msgid ""
989
996
"The ``level`` entry can be one of ``DEBUG, INFO, WARNING, ERROR, CRITICAL`` "
990
997
"or ``NOTSET``. For the root logger only, ``NOTSET`` means that all messages "
991
998
"will be logged. Level values are :ref:`evaluated <func-eval>` in the context "
992
999
"of the ``logging`` package's namespace."
993
1000
msgstr ""
994
1001
995
- #: ../../library/logging.config.rst:853
1002
+ #: ../../library/logging.config.rst:856
996
1003
msgid ""
997
1004
"The ``handlers`` entry is a comma-separated list of handler names, which "
998
1005
"must appear in the ``[handlers]`` section. These names must appear in the "
999
1006
"``[handlers]`` section and have corresponding sections in the configuration "
1000
1007
"file."
1001
1008
msgstr ""
1002
1009
1003
- #: ../../library/logging.config.rst:858
1010
+ #: ../../library/logging.config.rst:861
1004
1011
msgid ""
1005
1012
"For loggers other than the root logger, some additional information is "
1006
1013
"required. This is illustrated by the following example."
1007
1014
msgstr ""
1008
1015
1009
- #: ../../library/logging.config.rst:869
1016
+ #: ../../library/logging.config.rst:872
1010
1017
msgid ""
1011
1018
"The ``level`` and ``handlers`` entries are interpreted as for the root "
1012
1019
"logger, except that if a non-root logger's level is specified as ``NOTSET``, "
@@ -1019,28 +1026,28 @@ msgid ""
1019
1026
"application to get the logger."
1020
1027
msgstr ""
1021
1028
1022
- #: ../../library/logging.config.rst:878
1029
+ #: ../../library/logging.config.rst:881
1023
1030
msgid ""
1024
1031
"Sections which specify handler configuration are exemplified by the "
1025
1032
"following."
1026
1033
msgstr ""
1027
1034
1028
- #: ../../library/logging.config.rst:888
1035
+ #: ../../library/logging.config.rst:891
1029
1036
msgid ""
1030
1037
"The ``class`` entry indicates the handler's class (as determined by :func:"
1031
1038
"`eval` in the ``logging`` package's namespace). The ``level`` is interpreted "
1032
1039
"as for loggers, and ``NOTSET`` is taken to mean 'log everything'."
1033
1040
msgstr ""
1034
1041
1035
- #: ../../library/logging.config.rst:892
1042
+ #: ../../library/logging.config.rst:895
1036
1043
msgid ""
1037
1044
"The ``formatter`` entry indicates the key name of the formatter for this "
1038
1045
"handler. If blank, a default formatter (``logging._defaultFormatter``) is "
1039
1046
"used. If a name is specified, it must appear in the ``[formatters]`` section "
1040
1047
"and have a corresponding section in the configuration file."
1041
1048
msgstr ""
1042
1049
1043
- #: ../../library/logging.config.rst:897
1050
+ #: ../../library/logging.config.rst:900
1044
1051
msgid ""
1045
1052
"The ``args`` entry, when :ref:`evaluated <func-eval>` in the context of the "
1046
1053
"``logging`` package's namespace, is the list of arguments to the constructor "
@@ -1049,34 +1056,34 @@ msgid ""
1049
1056
"provided, it defaults to ``()``."
1050
1057
msgstr ""
1051
1058
1052
- #: ../../library/logging.config.rst:903
1059
+ #: ../../library/logging.config.rst:906
1053
1060
msgid ""
1054
1061
"The optional ``kwargs`` entry, when :ref:`evaluated <func-eval>` in the "
1055
1062
"context of the ``logging`` package's namespace, is the keyword argument dict "
1056
1063
"to the constructor for the handler class. If not provided, it defaults to "
1057
1064
"``{}``."
1058
1065
msgstr ""
1059
1066
1060
- #: ../../library/logging.config.rst:960
1067
+ #: ../../library/logging.config.rst:963
1061
1068
msgid ""
1062
1069
"Sections which specify formatter configuration are typified by the following."
1063
1070
msgstr ""
1064
1071
1065
- #: ../../library/logging.config.rst:972
1072
+ #: ../../library/logging.config.rst:975
1066
1073
msgid ""
1067
1074
"The arguments for the formatter configuration are the same as the keys in "
1068
1075
"the dictionary schema :ref:`formatters section <logging-config-dictschema-"
1069
1076
"formatters>`."
1070
1077
msgstr ""
1071
1078
1072
- #: ../../library/logging.config.rst:976
1079
+ #: ../../library/logging.config.rst:979
1073
1080
msgid ""
1074
1081
"The ``defaults`` entry, when :ref:`evaluated <func-eval>` in the context of "
1075
1082
"the ``logging`` package's namespace, is a dictionary of default values for "
1076
1083
"custom formatting fields. If not provided, it defaults to ``None``."
1077
1084
msgstr ""
1078
1085
1079
- #: ../../library/logging.config.rst:983
1086
+ #: ../../library/logging.config.rst:986
1080
1087
msgid ""
1081
1088
"Due to the use of :func:`eval` as described above, there are potential "
1082
1089
"security risks which result from using the :func:`listen` to send and "
@@ -1085,18 +1092,18 @@ msgid ""
1085
1092
"`listen` documentation for more information."
1086
1093
msgstr ""
1087
1094
1088
- #: ../../library/logging.config.rst:991
1095
+ #: ../../library/logging.config.rst:994
1089
1096
msgid "Module :mod:`logging`"
1090
1097
msgstr ":mod:`logging` 模組"
1091
1098
1092
- #: ../../library/logging.config.rst:992
1099
+ #: ../../library/logging.config.rst:995
1093
1100
msgid "API reference for the logging module."
1094
1101
msgstr ""
1095
1102
1096
- #: ../../library/logging.config.rst:994
1103
+ #: ../../library/logging.config.rst:997
1097
1104
msgid "Module :mod:`logging.handlers`"
1098
1105
msgstr ":mod:`logging.handlers` 模組"
1099
1106
1100
- #: ../../library/logging.config.rst:995
1107
+ #: ../../library/logging.config.rst:998
1101
1108
msgid "Useful handlers included with the logging module."
1102
1109
msgstr ""
0 commit comments