Metadata-Version: 2.1
Name: mongo-system-log
Version: 0.0.9
Summary: A log package that works with MongoDB.
Home-page: https://github.com/ronaldodduarte/mongo_system_log
Author: Ronaldo Duarte
Author-email: ronaldoduarte@globo.com
License: GNU
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: pymongo

The idea behind this package is possibility to you use some client or something like the Metabase for collect and analyse logs of your application. Its need two environments variables:  
* MONGO_DB  
* MONGO_URL    

Its works with two collections:  
* error  
* info

sample  
~~~python
from mongo_system_log import *
log = LogThis(get_module_name())
log.error('error message')
log.info('info message')
~~~
get_module_name()  
* This function gets module and file name that called it. Must be called on instantiate the LogThis class.



