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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mongo-system-log-0.0.9.tar.gz
  • Upload date:
  • Size: 2.8 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.9.tar.gz
Algorithm Hash digest
SHA256 f1ad2f755fcdb88a9b2ebfd39e68b506bc5cc6ccde5f76f43299e3fe64475a49
MD5 50458a47f0f5b95a83b3da51a6f3a236
BLAKE2b-256 a169dcb6df1b08b697dfdb7df3a10dcca8a1dbe80051127e564b655bb79888d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mongo_system_log-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1bb3aeed0b7beb67c763445149d101ea9ae53e15fceab56b0bfbdb0b8709cc16
MD5 18b0bb3fec45f28a364b632298d838a4
BLAKE2b-256 7330eda0caee3f766d9978a4756dcfb4e3a222dc572bb71608c9c4d765af51ad

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