Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5826
| X-Received | by 2002:a05:620a:2489:b0:6af:4b28:818d with SMTP id i9-20020a05620a248900b006af4b28818dmr19364022qkn.662.1656937588374; Mon, 04 Jul 2022 05:26:28 -0700 (PDT) |
|---|---|
| X-Received | by 2002:a05:6870:390d:b0:101:ab20:2763 with SMTP id b13-20020a056870390d00b00101ab202763mr16432291oap.233.1656937588062; Mon, 04 Jul 2022 05:26:28 -0700 (PDT) |
| Path | csiph.com!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail |
| Newsgroups | de.comp.lang.python |
| Date | Mon, 4 Jul 2022 05:26:27 -0700 (PDT) |
| In-Reply-To | <CAMSP2L7kmviEW46UKqGO=+jB8WffSF_vkfiuq-smsNhV5wEvTw@mail.gmail.com> |
| Injection-Info | google-groups.googlegroups.com; posting-host=87.71.7.244; posting-account=TEsHeAoAAAARE3wCPbXq05j6DF-fM4ap |
| NNTP-Posting-Host | 87.71.7.244 |
| References | <ff7ebbcc-f21c-40ff-b50d-13f4749b1b74n@googlegroups.com> <CAMSP2L7kmviEW46UKqGO=+jB8WffSF_vkfiuq-smsNhV5wEvTw@mail.gmail.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <f37f5b55-88f4-4c45-b580-2b50737b3ee9n@googlegroups.com> (permalink) |
| Subject | Re: [Python-de] Re: Ich sende erneut - der Code war nicht klar- python - |
| From | Linnea G <mi9877ch@gmail.com> |
| Injection-Date | Mon, 04 Jul 2022 12:26:28 +0000 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| Lines | 90 |
| Xref | csiph.com de.comp.lang.python:5826 |
Show key headers only | View raw
On Monday, 4 July 2022 at 14:29:24 UTC+3, Massa, Harald Armin wrote: > Hi Linnea, > > ------------------------------------------------------------------------------------- > > > > loggin.conf: > > > > > > ------------------------------------------------------------------------------------- > > [handler_consoleHandler] > > class=StreamHandler > > level=DEBUG > > * formatter*=simpleFormatter > > args=(sys.stdout,) > > > > [*formatter_simpleFormatter*] > > format='%(asctime)s - %(name)s %(levelname)s - %(message)s' > > > > ------------------------------------------------------------------------------------- > > > > Als ich lief, bekam ich diesen Fehler: > > > > > > ------------------------------------------------------------------------------------- > > flist = cp["formatters"]["keys"] > > File "C:\Program Files (x86)\Microsoft Visual > > Studio\Shared\Python37_64\lib\configparser.py", line 958, in __getitem__ > > raise KeyError(key) > > KeyError: 'formatters' > > > > ------------------------------------------------------------------------------------- > > > configparser erwartet einen Eintrag mit dem Schlüssel "formatters". > In Deiner Config sehe ich nur "formatter" und "formatter_simpleFormatter" > > > Wenn Du mal schaust unter > https://docs.python.org/3/library/logging.config.html > > Abschnitt ConfigurationFileFormat > > dort werden Sectionen, [formatters], [loggers] und [handlers] gefordert - > die sehe ich in Deiner config nicht > > (quote von jener Seite) > > [loggers]keys=root,log02,log03,log04,log05,log06,log07 > [handlers]keys=hand01,hand02,hand03,hand04,hand05,hand06,hand07,hand08,hand09 > [formatters]keys=form01,form02,form03,form04,form05,form06,form07,form08,form09 > > > > > > > > > > > _______________________________________________ > > python-de Mailingliste -- pyth...@python.org > > Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an > > python-...@python.org > > https://mail.python.org/mailman3/lists/python-de.python.org/ > > Mitgliedsadresse: ch...@ghum.de > > > > > -- > > GHUM GmbH > Harald Armin Massa > Spielberger Straße 49 > 70435 Stuttgart > 0173/9409607 > > Amtsgericht Stuttgart, HRB 734971 > GF: Harald Armin Massa Vielen Dank!! Das war die Lösung!!
Back to de.comp.lang.python | Previous | Next — Previous in thread | Find similar
Ich sende erneut - der Code war nicht klar- python - loggin.conf Linnea G <mi9877ch@gmail.com> - 2022-07-04 04:15 -0700
[Python-de] Re: Ich sende erneut - der Code war nicht klar- python - "Massa, Harald Armin" <chef@ghum.de> - 2022-07-04 13:29 +0200
Re: [Python-de] Re: Ich sende erneut - der Code war nicht klar- python - Linnea G <mi9877ch@gmail.com> - 2022-07-04 05:26 -0700
csiph-web