@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.14\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-12-01 14:16 +0000\n "
15+ "POT-Creation-Date : 2025-12-09 14:17 +0000\n "
1616"PO-Revision-Date : 2025-09-16 00:01+0000\n "
1717"Last-Translator : Rainer Terroso, 2025\n "
1818"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -26,7 +26,7 @@ msgstr ""
2626
2727#: ../../library/logging.handlers.rst:2
2828msgid ":mod:`!logging.handlers` --- Logging handlers"
29- msgstr ":mod:`!logging.handlers` --- Tratadores de registro de eventos "
29+ msgstr ":mod:`!logging.handlers` --- Manipuladores de logging "
3030
3131#: ../../library/logging.handlers.rst:10
3232msgid "**Source code:** :source:`Lib/logging/handlers.py`"
@@ -69,7 +69,7 @@ msgstr ""
6969
7070#: ../../library/logging.handlers.rst:33
7171msgid "StreamHandler"
72- msgstr ""
72+ msgstr "StreamHandler "
7373
7474#: ../../library/logging.handlers.rst:35
7575msgid ""
@@ -78,13 +78,20 @@ msgid ""
7878"or any file-like object (or, more precisely, any object which supports :meth:"
7979"`write` and :meth:`flush` methods)."
8080msgstr ""
81+ "A classe :class:`StreamHandler` localizada no pacote principal :mod:"
82+ "`logging`, envia a saída de log para fluxos como *sys.stdout*, *sys.stderr* "
83+ "ou qualquer objeto arquivo ou similar (ou, mais precisamente, qualquer "
84+ "objeto que provê os métodos :meth:`write` e :meth:`flush`)."
8185
8286#: ../../library/logging.handlers.rst:43
8387msgid ""
8488"Returns a new instance of the :class:`StreamHandler` class. If *stream* is "
8589"specified, the instance will use it for logging output; otherwise, *sys."
8690"stderr* will be used."
8791msgstr ""
92+ "Retorna uma nova instância da classe :class:`StreamHandler` Se *stream* for "
93+ "especificado, a instância irá utilizá-lo para a saída de log; caso "
94+ "contrário, *sys.stderr* será usado."
8895
8996#: ../../library/logging.handlers.rst:50
9097msgid ""
@@ -93,27 +100,37 @@ msgid ""
93100"information is present, it is formatted using :func:`traceback."
94101"print_exception` and appended to the stream."
95102msgstr ""
103+ "Se um formatador for especificado, ele será usado para formatar o registro. "
104+ "Em seguida, o registro é escrito no fluxo, seguido por :attr:`terminator` Se "
105+ "houver informações de exceção, elas são formatadas usando :func:`traceback."
106+ "print_exception` e anexadas ao fluxo."
96107
97108#: ../../library/logging.handlers.rst:58
98109msgid ""
99110"Flushes the stream by calling its :meth:`flush` method. Note that the :meth:"
100111"`close` method is inherited from :class:`~logging.Handler` and so does no "
101112"output, so an explicit :meth:`flush` call may be needed at times."
102113msgstr ""
114+ "Esvazia o fluxo chamando seu método :meth:`flush`. Observe que o método :"
115+ "meth:`close` é herdado de :class:`~logging.Handler` e, portanto, não produz "
116+ "nenhuma saída, de modo que uma chamada explícita a :meth:`flush` pode ser "
117+ "necessária em alguns casos."
103118
104119#: ../../library/logging.handlers.rst:64
105120msgid ""
106121"Sets the instance's stream to the specified value, if it is different. The "
107122"old stream is flushed before the new stream is set."
108123msgstr ""
124+ "Define o fluxo da instância para o valor especificado, caso seja diferente. "
125+ "O fluxo antigo é esvaziado antes que o novo fluxo seja definido."
109126
110127#: ../../library/logging.handlers.rst:0
111128msgid "Parameters"
112129msgstr "Parâmetros"
113130
114131#: ../../library/logging.handlers.rst:67
115132msgid "The stream that the handler should use."
116- msgstr ""
133+ msgstr "O fluxo que o manipulador deve usar. "
117134
118135#: ../../library/logging.handlers.rst:0
119136msgid "Returns"
@@ -122,33 +139,44 @@ msgstr "Retorna"
122139#: ../../library/logging.handlers.rst:69
123140msgid "the old stream, if the stream was changed, or ``None`` if it wasn't."
124141msgstr ""
142+ "o fluxo antigo, se o fluxo tiver sido alterado, ou ``None``, se não tiver "
143+ "sido."
125144
126145#: ../../library/logging.handlers.rst:75
127146msgid ""
128147"String used as the terminator when writing a formatted record to a stream. "
129148"Default value is ``'\\ n'``."
130149msgstr ""
150+ "String usada como terminador ao gravar um registro formatado em um fluxo. O "
151+ "valor padrão é ``'\\ n'``."
131152
132153#: ../../library/logging.handlers.rst:78
133154msgid ""
134155"If you don't want a newline termination, you can set the handler instance's "
135156"``terminator`` attribute to the empty string."
136157msgstr ""
158+ "Se você não quiser uma terminação com nova linha, pode definir o atributo "
159+ "``terminator`` da instância do manipulador como uma string vazia."
137160
138161#: ../../library/logging.handlers.rst:81
139162msgid "In earlier versions, the terminator was hardcoded as ``'\\ n'``."
140163msgstr ""
164+ "Nas versões anteriores, o terminador era codificado diretamente como "
165+ "``'\\ n'``."
141166
142167#: ../../library/logging.handlers.rst:89
143168msgid "FileHandler"
144- msgstr ""
169+ msgstr "FileHandler "
145170
146171#: ../../library/logging.handlers.rst:91
147172msgid ""
148173"The :class:`FileHandler` class, located in the core :mod:`logging` package, "
149174"sends logging output to a disk file. It inherits the output functionality "
150175"from :class:`StreamHandler`."
151176msgstr ""
177+ "A classe :class:`FileHandler`, localizada no pacote principal :mod:"
178+ "`logging`, envia a saída de logging para um arquivo em disco. Ela herda a "
179+ "funcionalidade de saída da classe :class:`StreamHandler`."
152180
153181#: ../../library/logging.handlers.rst:98
154182msgid ""
@@ -160,6 +188,13 @@ msgid ""
160188"*errors* is specified, it's used to determine how encoding errors are "
161189"handled."
162190msgstr ""
191+ "Retorna uma nova instância da classe :class:`FileHandler`. O arquivo "
192+ "especificado é aberto e usado como o fluxo para logging. Se *mode* não for "
193+ "especificado, ``'a'`` é usado. Se *encoding* não for ``None``, ele é usado "
194+ "para abrir o arquivo com essa codificação. Se *delay* for verdadeiro, então "
195+ "a abertura do arquivo é adiada até a primeira chamada de :meth:`emit` Por "
196+ "padrão, o arquivo cresce indefinidamente. Se *errors* for especificado, ele "
197+ "é usado para determinar como os erros de codificação serão tratados."
163198
164199#: ../../library/logging.handlers.rst:105
165200#: ../../library/logging.handlers.rst:190
@@ -169,27 +204,32 @@ msgid ""
169204"As well as string values, :class:`~pathlib.Path` objects are also accepted "
170205"for the *filename* argument."
171206msgstr ""
207+ "Além de valores do tipo string, objetos :class:`~pathlib.Path` também são "
208+ "aceitos para o argumento *filename*."
172209
173210#: ../../library/logging.handlers.rst:109
174211#: ../../library/logging.handlers.rst:194
175212#: ../../library/logging.handlers.rst:342
176213#: ../../library/logging.handlers.rst:452
177214msgid "The *errors* parameter was added."
178- msgstr ""
215+ msgstr "O parâmetro *errors* foi adicionado. "
179216
180217#: ../../library/logging.handlers.rst:114
181218msgid "Closes the file."
182- msgstr ""
219+ msgstr "Fecha o arquivo. "
183220
184221#: ../../library/logging.handlers.rst:118
185222msgid "Outputs the record to the file."
186- msgstr ""
223+ msgstr "Envia o registro para o arquivo. "
187224
188225#: ../../library/logging.handlers.rst:120
189226msgid ""
190227"Note that if the file was closed due to logging shutdown at exit and the "
191228"file mode is 'w', the record will not be emitted (see :issue:`42378`)."
192229msgstr ""
230+ "Observe que, se o arquivo tiver sido fechado devido ao encerramento do "
231+ "sistema de logging na saída e o modo do arquivo for 'w', o registro não será "
232+ "emitido (veja :issue:`42378`)."
193233
194234#: ../../library/logging.handlers.rst:127
195235msgid "NullHandler"
0 commit comments