@@ -74,13 +74,20 @@ msgid ""
7474"or any file-like object (or, more precisely, any object which supports :meth:"
7575"`write` and :meth:`flush` methods)."
7676msgstr ""
77+ "A classe :class:`StreamHandler` localizada no pacote principal :mod:"
78+ "`logging`, envia a saída de log para fluxos como *sys.stdout*, *sys.stderr* "
79+ "ou qualquer objeto arquivo ou similar (ou, mais precisamente, qualquer "
80+ "objeto que provê os métodos :meth:`write` e :meth:`flush`)."
7781
7882#: ../../library/logging.handlers.rst:43
7983msgid ""
8084"Returns a new instance of the :class:`StreamHandler` class. If *stream* is "
8185"specified, the instance will use it for logging output; otherwise, *sys."
8286"stderr* will be used."
8387msgstr ""
88+ "Retorna uma nova instância da classe :class:`StreamHandler` Se *stream* for "
89+ "especificado, a instância irá utilizá-lo para a saída de log; caso "
90+ "contrário, *sys.stderr* será usado."
8491
8592#: ../../library/logging.handlers.rst:50
8693msgid ""
@@ -89,27 +96,37 @@ msgid ""
8996"information is present, it is formatted using :func:`traceback."
9097"print_exception` and appended to the stream."
9198msgstr ""
99+ "Se um formatador for especificado, ele será usado para formatar o registro. "
100+ "Em seguida, o registro é escrito no fluxo, seguido por :attr:`terminator` Se "
101+ "houver informações de exceção, elas são formatadas usando :func:`traceback."
102+ "print_exception` e anexadas ao fluxo."
92103
93104#: ../../library/logging.handlers.rst:58
94105msgid ""
95106"Flushes the stream by calling its :meth:`flush` method. Note that the :meth:"
96107"`close` method is inherited from :class:`~logging.Handler` and so does no "
97108"output, so an explicit :meth:`flush` call may be needed at times."
98109msgstr ""
110+ "Esvazia o fluxo chamando seu método :meth:`flush`. Observe que o método :"
111+ "meth:`close` é herdado de :class:`~logging.Handler` e, portanto, não produz "
112+ "nenhuma saída, de modo que uma chamada explícita a :meth:`flush` pode ser "
113+ "necessária em alguns casos."
99114
100115#: ../../library/logging.handlers.rst:64
101116msgid ""
102117"Sets the instance's stream to the specified value, if it is different. The "
103118"old stream is flushed before the new stream is set."
104119msgstr ""
120+ "Define o fluxo da instância para o valor especificado, caso seja diferente. "
121+ "O fluxo antigo é esvaziado antes que o novo fluxo seja definido."
105122
106123#: ../../library/logging.handlers.rst:0
107124msgid "Parameters"
108125msgstr "Parâmetros"
109126
110127#: ../../library/logging.handlers.rst:67
111128msgid "The stream that the handler should use."
112- msgstr ""
129+ msgstr "O fluxo que o manipulador deve usar. "
113130
114131#: ../../library/logging.handlers.rst:0
115132msgid "Returns"
@@ -124,27 +141,36 @@ msgid ""
124141"String used as the terminator when writing a formatted record to a stream. "
125142"Default value is ``'\\ n'``."
126143msgstr ""
144+ "String usada como terminador ao gravar um registro formatado em um fluxo. O "
145+ "valor padrão é ``'\\ n'``."
127146
128147#: ../../library/logging.handlers.rst:78
129148msgid ""
130149"If you don't want a newline termination, you can set the handler instance's "
131150"``terminator`` attribute to the empty string."
132151msgstr ""
152+ "Se você não quiser uma terminação com nova linha, pode definir o atributo "
153+ "``terminator`` da instância do manipulador como uma string vazia."
133154
134155#: ../../library/logging.handlers.rst:81
135156msgid "In earlier versions, the terminator was hardcoded as ``'\\ n'``."
136157msgstr ""
158+ "Nas versões anteriores, o terminador era codificado diretamente como "
159+ "``'\\ n'``."
137160
138161#: ../../library/logging.handlers.rst:89
139162msgid "FileHandler"
140- msgstr ""
163+ msgstr "FileHandler "
141164
142165#: ../../library/logging.handlers.rst:91
143166msgid ""
144167"The :class:`FileHandler` class, located in the core :mod:`logging` package, "
145168"sends logging output to a disk file. It inherits the output functionality "
146169"from :class:`StreamHandler`."
147170msgstr ""
171+ "A classe :class:`FileHandler`, localizada no pacote principal :mod:"
172+ "`logging`, envia a saída de logging para um arquivo em disco. Ela herda a "
173+ "funcionalidade de saída da classe :class:`StreamHandler`."
148174
149175#: ../../library/logging.handlers.rst:98
150176msgid ""
@@ -156,6 +182,13 @@ msgid ""
156182"*errors* is specified, it's used to determine how encoding errors are "
157183"handled."
158184msgstr ""
185+ "Retorna uma nova instância da classe :class:`FileHandler`. O arquivo "
186+ "especificado é aberto e usado como o fluxo para logging. Se *mode* não for "
187+ "especificado, ``'a'`` é usado. Se *encoding* não for ``None``, ele é usado "
188+ "para abrir o arquivo com essa codificação. Se *delay* for verdadeiro, então "
189+ "a abertura do arquivo é adiada até a primeira chamada de :meth:`emit` Por "
190+ "padrão, o arquivo cresce indefinidamente. Se *errors* for especificado, ele "
191+ "é usado para determinar como os erros de codificação serão tratados."
159192
160193#: ../../library/logging.handlers.rst:105
161194#: ../../library/logging.handlers.rst:190
@@ -165,27 +198,32 @@ msgid ""
165198"As well as string values, :class:`~pathlib.Path` objects are also accepted "
166199"for the *filename* argument."
167200msgstr ""
201+ "Além de valores do tipo string, objetos :class:`~pathlib.Path` também são "
202+ "aceitos para o argumento *filename*."
168203
169204#: ../../library/logging.handlers.rst:109
170205#: ../../library/logging.handlers.rst:194
171206#: ../../library/logging.handlers.rst:342
172207#: ../../library/logging.handlers.rst:448
173208msgid "The *errors* parameter was added."
174- msgstr ""
209+ msgstr "O parâmetro *errors* foi adicionado. "
175210
176211#: ../../library/logging.handlers.rst:114
177212msgid "Closes the file."
178- msgstr ""
213+ msgstr "Fecha o arquivo. "
179214
180215#: ../../library/logging.handlers.rst:118
181216msgid "Outputs the record to the file."
182- msgstr ""
217+ msgstr "Envia o registro para o arquivo. "
183218
184219#: ../../library/logging.handlers.rst:120
185220msgid ""
186221"Note that if the file was closed due to logging shutdown at exit and the "
187222"file mode is 'w', the record will not be emitted (see :issue:`42378`)."
188223msgstr ""
224+ "Observe que, se o arquivo tiver sido fechado devido ao encerramento do "
225+ "sistema de logging na saída e o modo do arquivo for 'w', o registro não será "
226+ "emitido (veja :issue:`42378`)."
189227
190228#: ../../library/logging.handlers.rst:127
191229msgid "NullHandler"
0 commit comments