# KeyError: 'logger' when executing a NER trainer

**URL:** https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571
**Category:** Uncategorized
**Tags:** training, spacy, done
**Created:** [August 16, 2021, 12:35pm UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571 "2021-08-16T12:35:50Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)
#### Post date: [August 16, 2021, 12:40pm UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571/2 "2021-08-16T12:40:43Z")

</div>

Hi! It looks like this error happens if the base config doesn't contain a logger – we already have a fix and will be releasing v1.11.1 shortly, but in the meantime, you can just comment out this section in `train.py` (you can run `prodigy stats` to find the location of your Prodigy installation).

See this comment for more background:

> [@1.11.0: Incorrect generation of config files?](https://support.prodi.gy/t/1-11-0-incorrect-generation-of-config-files/4556/4):
>
> Hi Tom, Sorry for not having been entirely clear in my previous reply. We are aware of the fact that the functionality changed since the nightly version, as we've specifically implemented it so that parts of the config of the base\_model would be copied over, including the training parameters. This is to better support transformer-based pipelines, which need different training parameters. In general, if you specify a base\_model then Prodigy will try to copy as much as possible from that model in…

---

_[View the full topic](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571)._
