A log package that works with MongoDB.
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mongo-system-log-0.0.5.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for mongo_system_log-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3a762c1f99921a0a63a30353628a0d45f343de360c06b28e327a9869101b4f |
|
MD5 | 3ea1736ee84f8cc860ae44fc0d07d6a9 |
|
BLAKE2b-256 | c6e4fcb507acec2330b33a8dd3f4ef99793b1cfd7162c30c28b533f9ddc948dd |