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


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

Re: [Python-de] Re: Ich sende erneut - der Code war nicht klar- python -

Newsgroups de.comp.lang.python
Date 2022-07-04 05:26 -0700
References <ff7ebbcc-f21c-40ff-b50d-13f4749b1b74n@googlegroups.com> <CAMSP2L7kmviEW46UKqGO=+jB8WffSF_vkfiuq-smsNhV5wEvTw@mail.gmail.com>
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>

Show all headers | 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 | NextPrevious in thread | Find similar


Thread

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