Skip to main content

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


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.7.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

mongo_system_log-0.0.7-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file mongo-system-log-0.0.7.tar.gz.

File metadata

  • Download URL: mongo-system-log-0.0.7.tar.gz
  • Upload date:
  • Size: 2.9 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

Hashes for mongo-system-log-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c1360f20f1ec6992bf86076b13ea78358169f6256494f1ceb652f27f20b86e02
MD5 a987115e3755ba91d70f71abda5091f0
BLAKE2b-256 f40cc5640f52b17755a84013ffe339fd7e2a0a52852f8b107ff83dfa2f222968

See more details on using hashes here.

File details

Details for the file mongo_system_log-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: mongo_system_log-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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

Hashes for mongo_system_log-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d0ce25f2b25419ef324e5a669329d7270de3bfd7e47ab327503c23a346879681
MD5 70fbd4c703ba2a26dc988626b3f1ed4e
BLAKE2b-256 31a5eb6408074379e2406619d880767ec418432c6bcf33e387c4ede20062f07f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page