log4mongo / log4mongo-python

python logging handler for mongo database
http://log4mongo.org
Other
111 stars 37 forks source link

logger.info #36

Closed ScrimForever closed 6 years ago

ScrimForever commented 6 years ago

handler = MongoHandler(host='localhost') logger = logging.getLogger('test') logger.info("test", extra={'ip': '127.0.0.1'}) <--- not working..... logger.warning("test") image

Why just .info not working ???

oz123 commented 6 years ago

Because by default logging handler in Python are configured to level 'INFO', which means only 'WARNING' and above are emitted.

set your logger level to DEBUG and you will see info messages too.

ScrimForever commented 6 years ago

Thanks a lot. So sorry. Can close this ticket, please!