@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-11-07 18:23 +0000\n "
14+ "POT-Creation-Date : 2026-11-21 20:18 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -404,11 +404,9 @@ msgstr ""
404404
405405msgid ""
406406"This configuration does *almost* what we want, except that ``sys.stdout`` "
407- "would show messages of severity ``ERROR`` and only events of this severity "
408- "and higher will be tracked as well as ``INFO`` and ``WARNING`` messages. To "
409- "prevent this, we can set up a filter which excludes those messages and add "
410- "it to the relevant handler. This can be configured by adding a ``filters`` "
411- "section parallel to ``formatters`` and ``handlers``:"
407+ "would also show messages of severity ``ERROR`` and above. To exclude those "
408+ "messages, we can add a filter to the stdout handler. This can be configured "
409+ "by adding a ``filters`` section parallel to ``formatters`` and ``handlers``:"
412410msgstr ""
413411
414412msgid ""
@@ -650,9 +648,9 @@ msgid ""
650648"a :class:`QueueHandler` to those loggers which are accessed from performance-"
651649"critical threads. They simply write to their queue, which can be sized to a "
652650"large enough capacity or initialized with no upper bound to their size. The "
653- "write to the queue will typically be accepted quickly, though you will "
654- "probably need to catch the :exc:`queue.Full` exception as a precaution in "
655- "your code . If you are a library developer who has performance-critical "
651+ "write to the queue will typically be accepted quickly. If a bounded queue is "
652+ "full, :class:`QueueHandler` calls :meth:`~logging.Handler.handleError` with "
653+ "the record . If you are a library developer who has performance-critical "
656654"threads in their code, be sure to document this (together with a suggestion "
657655"to attach only ``QueueHandlers`` to your loggers) for the benefit of other "
658656"developers who will use your code."
@@ -2000,8 +1998,8 @@ msgstr ""
20001998msgid ""
20011999"The most current file is always :file:`logging_rotatingfile_example.out`, "
20022000"and each time it reaches the size limit it is renamed with the suffix "
2003- "``.1``. Each of the existing backup files is renamed to increment the suffix "
2004- "(``.1 `` becomes ``.2 ``, etc.) and the ``.6`` file is erased ."
2001+ "``.1``. Before this happens, the oldest backup (``.5``), if present, is "
2002+ "deleted and the remaining backups are renamed (``.4 `` becomes ``.5 ``, etc.)."
20052003msgstr ""
20062004
20072005msgid ""
@@ -2221,7 +2219,7 @@ msgid ""
22212219":func:`makeLogRecord`, which is called with a dictionary containing "
22222220"attributes to be added to the LogRecord. This is typically invoked when a "
22232221"suitable dictionary has been received over the network (e.g. in pickle form "
2224- "via a :class:`~handlers.SocketHandler`, or in JSON form via "
2222+ "via a :class:`~handlers.SocketHandler`, or as URL-encoded data via "
22252223"an :class:`~handlers.HTTPHandler`)."
22262224msgstr ""
22272225
@@ -2261,13 +2259,7 @@ msgstr ""
22612259msgid "logger = logging.getLogger(__name__)"
22622260msgstr ""
22632261
2264- msgid ""
2265- "at module level). It's probably one too many things to think about. "
2266- "Developers could also add the filter to a :class:`~logging.NullHandler` "
2267- "attached to their top-level logger, but this would not be invoked if an "
2268- "application developer attached a handler to a lower-level library logger --- "
2269- "so output from that handler would not reflect the intentions of the library "
2270- "developer."
2262+ msgid "at module level). It's probably one too many things to think about."
22712263msgstr ""
22722264
22732265msgid ""
@@ -2364,16 +2356,16 @@ msgstr ""
23642356
23652357msgid ""
23662358"class ZeroMQSocketListener(QueueListener):\n"
2367- " def __init__(self, uri, /, *handlers, **kwargs):\n"
2368- " self.ctx = kwargs.get(' ctx') or zmq.Context()\n"
2359+ " def __init__(self, uri, /, *handlers, ctx=None, **kwargs):\n"
2360+ " self.ctx = ctx or zmq.Context()\n"
23692361" socket = zmq.Socket(self.ctx, zmq.SUB)\n"
23702362" socket.setsockopt_string(zmq.SUBSCRIBE, '') # subscribe to "
23712363"everything\n"
23722364" socket.connect(uri)\n"
23732365" super().__init__(socket, *handlers, **kwargs)\n"
23742366"\n"
2375- " def dequeue(self):\n"
2376- " msg = self.queue.recv_json()\n"
2367+ " def dequeue(self, block ):\n"
2368+ " msg = self.queue.recv_json(flags=0 if block else zmq.NOBLOCK )\n"
23772369" return logging.makeLogRecord(msg)"
23782370msgstr ""
23792371
@@ -2715,7 +2707,7 @@ msgid ""
27152707"import logging.config\n"
27162708"import logging.handlers\n"
27172709"from multiprocessing import Process, Queue, Event, current_process\n"
2718- "import os \n"
2710+ "from multiprocessing import get_start_method \n"
27192711"import random\n"
27202712"import time\n"
27212713"\n"
@@ -2754,13 +2746,8 @@ msgid ""
27542746" logging.config.dictConfig(config)\n"
27552747" listener = logging.handlers.QueueListener(q, MyHandler())\n"
27562748" listener.start()\n"
2757- " if os.name == 'posix':\n"
2758- " # On POSIX, the setup logger will have been configured in the\n"
2759- " # parent process, but should have been disabled following the\n"
2760- " # dictConfig call.\n"
2761- " # On Windows, since fork isn't used, the setup logger won't\n"
2762- " # exist in the child, so it would be created and the message\n"
2763- " # would appear - hence the \" if posix\" clause.\n"
2749+ " if get_start_method() == 'fork':\n"
2750+ " # dictConfig disables the setup logger inherited from the parent.\n"
27642751" logger = logging.getLogger('setup')\n"
27652752" logger.critical('Should not appear, because of disabled "
27662753"logger ...')\n"
@@ -2786,13 +2773,8 @@ msgid ""
27862773" logging.CRITICAL]\n"
27872774" loggers = ['foo', 'foo.bar', 'foo.bar.baz',\n"
27882775" 'spam', 'spam.ham', 'spam.ham.eggs']\n"
2789- " if os.name == 'posix':\n"
2790- " # On POSIX, the setup logger will have been configured in the\n"
2791- " # parent process, but should have been disabled following the\n"
2792- " # dictConfig call.\n"
2793- " # On Windows, since fork isn't used, the setup logger won't\n"
2794- " # exist in the child, so it would be created and the message\n"
2795- " # would appear - hence the \" if posix\" clause.\n"
2776+ " if get_start_method() == 'fork':\n"
2777+ " # dictConfig disables the setup logger inherited from the parent.\n"
27962778" logger = logging.getLogger('setup')\n"
27972779" logger.critical('Should not appear, because of disabled "
27982780"logger ...')\n"
@@ -2822,10 +2804,7 @@ msgid ""
28222804" # The worker process configuration is just a QueueHandler attached to "
28232805"the\n"
28242806" # root logger, which allows all messages to be sent to the queue.\n"
2825- " # We disable existing loggers to disable the \" setup\" logger used in "
2826- "the\n"
2827- " # parent process. This is needed on POSIX because the logger will\n"
2828- " # be there in the child following a fork().\n"
2807+ " # Disable the parent's \" setup\" logger if it was inherited via fork.\n"
28292808" config_worker = {\n"
28302809" 'version': 1,\n"
28312810" 'disable_existing_loggers': True,\n"
@@ -2844,10 +2823,7 @@ msgid ""
28442823" # logging configuration is available to dispatch events to handlers "
28452824"however\n"
28462825" # you want.\n"
2847- " # We disable existing loggers to disable the \" setup\" logger used in "
2848- "the\n"
2849- " # parent process. This is needed on POSIX because the logger will\n"
2850- " # be there in the child following a fork().\n"
2826+ " # Disable the parent's \" setup\" logger if it was inherited via fork.\n"
28512827" config_listener = {\n"
28522828" 'version': 1,\n"
28532829" 'disable_existing_loggers': True,\n"
@@ -4790,11 +4766,9 @@ msgstr ""
47904766msgid ""
47914767"Usually, messages that are logged (say to console or file) consist of a "
47924768"single line of text. However, sometimes there is a need to handle messages "
4793- "with multiple lines - whether because a logging format string contains "
4794- "newlines, or logged data contains newlines. If you want to handle such "
4795- "messages uniformly, so that each line in the logged message appears "
4796- "uniformly formatted as if it was logged separately, you can do this using a "
4797- "handler mixin, as in the following snippet:"
4769+ "with multiple lines because the message or its arguments contain newlines. "
4770+ "To format each line as if it were logged separately, you can use a handler "
4771+ "mixin, as in the following snippet:"
47984772msgstr ""
47994773
48004774msgid ""
0 commit comments