Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5842

[Python-de] Aktuell gesetzte LOG_MASK in syslog herausfinden?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From c.buhtz@posteo.jp
Newsgroups de.comp.lang.python
Subject [Python-de] Aktuell gesetzte LOG_MASK in syslog herausfinden?
Date Thu, 22 Sep 2022 10:56:39 +0000
Lines 28
Message-ID <8f67ec890b9eec67e46394eba39864f5@posteo.de> (permalink)
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 <python-de.python.org>
Archived-At <https://mail.python.org/archives/list/python-de@python.org/message/IPIRRUY3XEAOKVUPYVKRGSF4NSBVW44W/>
List-Archive <https://mail.python.org/archives/list/python-de@python.org/>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Owner <mailto:python-de-owner@python.org>
List-Post <mailto:python-de@python.org>
List-Subscribe <mailto:python-de-join@python.org>
List-Unsubscribe <mailto:python-de-leave@python.org>
Xref csiph.com de.comp.lang.python:5842

Show key headers only | View raw


Hi,

mir ist bewusst, dass es das "logging" Paket gibt und man nicht mehr 
unbedingt mit "syslog" herumspielen müsste. Muss hier aber mit älteren 
Code umgehen.

Es geht also um https://docs.python.org/3/library/syslog.html

Ich möchte die aktuell gesetzte LOG_MASK herausfinden, also die 
Nachrichten-Priorität ähnlich dem log levels in "logging".
Dafür scheint "syslog" laut Docu aber keinen Mechanismus 
bereitzustellen. Auch im "syslog.__dict__" konnte ich nichts finden.

Hat jemand eine Idee?

Laut docu lässt "syslog" per default erst einmal alles durch. Das könnte 
mir auch schon weiterhelfen. Nur die Frage ist, wie man diesen Zustand 
erreichen kann, wenn man bereits per "syslog.setlogmask()" herumgespielt 
hat. Ich möchte also den die log mask resetten können.

Aber lieber wäre es mir natürlich, wenn ich vorab sicher sein könnte, 
dass da keine LOG_MASK gesetzt war.

SG
Christian

Back to de.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

[Python-de] Aktuell gesetzte LOG_MASK in syslog herausfinden? c.buhtz@posteo.jp - 2022-09-22 10:56 +0000
  [Python-de] Re: Aktuell gesetzte LOG_MASK in syslog herausfinden? Matthias Urlichs <matthias.urlichs@noris.de> - 2022-09-22 12:28 +0000
  [Python-de] Re: Aktuell gesetzte LOG_MASK in syslog herausfinden? Matthias Urlichs <matthias.urlichs@noris.de> - 2022-09-22 12:40 +0000
  Re: [Python-de] Aktuell gesetzte LOG_MASK in syslog herausfinden? "Peter J. Holzer" <hjp-usenet3@hjp.at> - 2022-09-22 23:57 +0200

csiph-web