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
Built Distribution
File details
Details for the file mongo-system-log-0.0.8.tar.gz
.
File metadata
- Download URL: mongo-system-log-0.0.8.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b62eaf8b6991cd77f5c179b84e6657457087b953df1247ff4057590b043e69c |
|
MD5 | 56fe6afa442209b2d6d5331c7359f539 |
|
BLAKE2b-256 | b6c9b1f9167bba0d2a3479c9818bc7c9d3999da016641c0387f8a1f61233eb1a |
File details
Details for the file mongo_system_log-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: mongo_system_log-0.0.8-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8baf974b09d49e4343f627c32b0b3a154bd8b5dfd1c9a4218bba82b71a1cfc9 |
|
MD5 | 16a23184bafa497c6812daf99d0b3cfd |
|
BLAKE2b-256 | 51e7b1ceddb77d9d7b9661e005aa15dc0d48da01ffc1cc67f58d0dc83f05b235 |