I encountered the following error when I misunderstood the purpose of the logger argument to Mongolog.find(logger="badger"...), where I entered the Mongo collection name badger instead of the different logger name "mustelidae" or whatever:
ValueError at /path/to/error/url/
No BaseMongoLogHandler could be found. Did you add on to youy logging config?
If the badger logger isn't found in Django logging settings, perhaps a more instructive error message would be: "Please check that LOGGERS["loggers"]["badger"] is defined in your Django settings and that it points to a logging handler of class mongolog.SimpleMongoLogHandler.
I encountered the following error when I misunderstood the purpose of the
logger
argument toMongolog.find(logger="badger"...)
, where I entered the Mongo collection namebadger
instead of the different logger name"mustelidae"
or whatever:Given this:
If the
badger
logger isn't found in Django logging settings, perhaps a more instructive error message would be: "Please check thatLOGGERS["loggers"]["badger"]
is defined in your Django settings and that it points to a logging handler of classmongolog.SimpleMongoLogHandler
.