Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: c.buhtz@posteo.jp Newsgroups: de.comp.lang.python Subject: =?utf-8?q?=5BPython-de=5D_Aktuell_gesetzte_LOG=5FMASK_in_syslog_herausfinden=3F?= Date: Thu, 22 Sep 2022 10:56:39 +0000 Lines: 28 Message-ID: <8f67ec890b9eec67e46394eba39864f5@posteo.de> Reply-To: python-de@python.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de MiJVS8AxuXoJ11zItQFfnwJsYYEyoT+GYvE2qO/B7dzQ== Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=posteo.jp header.i=@posteo.jp header.b=dQl/Jz5w; dkim-adsp=pass; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.jp; s=2017; t=1663844200; bh=ZPAEeGqp7TIcmeEAJXxfQyV59wC0su452z718R7SX3c=; h=Date:From:To:Subject:From; b=dQl/Jz5wmu5fiJmobYSaf4YRjItY5ouefbesHmNE5GX6eIPGdMtw7SkTy6ytXGNXm Fozi3uk8tEmIa22xr+zHZiDVHUzRnzK7IK1T/z8+zJsqFvNbVt1m8tOtw/ILsuz1WF d65dKTmfpqdcrkz/6ks3l7LOeZUL1yjjxDFQoHCHZfmqDN4sUvHgJoiKGcWMHsv30S tMakBLP/+gwsjYvw1Bp88/NttLIQLy+wsTlzwxfUbMufwiDwVeN8CFzYZuYq5RaOON WD7SYWuEewRTlE75VRuqg2ZWP/5LsFxeY/2TkElqhbYf3NAz4W0MyYNpAPxqFZKP83 iCLYo2IB9nMiA== Mail-Reply-To: python-de@python.org Message-ID-Hash: IPIRRUY3XEAOKVUPYVKRGSF4NSBVW44W X-Message-ID-Hash: IPIRRUY3XEAOKVUPYVKRGSF4NSBVW44W X-MailFrom: c.buhtz@posteo.jp X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-python-de.python.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list List-Id: Die Deutsche Python Mailingliste Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Xref: csiph.com de.comp.lang.python:5842 Hi, mir ist bewusst, dass es das "logging" Paket gibt und man nicht mehr=20 unbedingt mit "syslog" herumspielen m=C3=BCsste. Muss hier aber mit =C3=A4l= teren=20 Code umgehen. Es geht also um https://docs.python.org/3/library/syslog.html Ich m=C3=B6chte die aktuell gesetzte LOG_MASK herausfinden, also die=20 Nachrichten-Priorit=C3=A4t =C3=A4hnlich dem log levels in "logging". Daf=C3=BCr scheint "syslog" laut Docu aber keinen Mechanismus=20 bereitzustellen. Auch im "syslog.__dict__" konnte ich nichts finden. Hat jemand eine Idee? Laut docu l=C3=A4sst "syslog" per default erst einmal alles durch. Das k=C3= =B6nnte=20 mir auch schon weiterhelfen. Nur die Frage ist, wie man diesen Zustand=20 erreichen kann, wenn man bereits per "syslog.setlogmask()" herumgespielt=20 hat. Ich m=C3=B6chte also den die log mask resetten k=C3=B6nnen. Aber lieber w=C3=A4re es mir nat=C3=BCrlich, wenn ich vorab sicher sein k= =C3=B6nnte,=20 dass da keine LOG_MASK gesetzt war. SG Christian