nhtua / log2mongo

Python decorator automatically captures and saves all logger output to MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a demo to show technique to capture logger output and save to MongoDB

Environment:

  • Pyenv - Python 3.6.8
  • Pipenv
  • Pytest

See the tests directory to know how to use @log2mongo

pipenv run pytest

About

Python decorator automatically captures and saves all logger output to MongoDB

License:MIT License


Languages

Language:Python 100.0%