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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mongo_system_log-0.0.3.tar.gz.

File metadata

  • Download URL: mongo_system_log-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d4d2110596c9dda0f4f2fb838455b8abcd13e8f0dbdc8980a0c29788b08f9f47
MD5 f955740c0244ff8382a0c53f91444009
BLAKE2b-256 758b85e758aeaf1a04889a20ffaa5494fcbc5ec5cd80422422e5d1381f15ef80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mongo_system_log-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc07f1de94b4643501a4e67fb1b7441802023370d3435b678f13fc261b38068c
MD5 a12f35dd2b4fc822f23495b2c0b9dac8
BLAKE2b-256 dff62a86a79ab9a88ded3530c92e2678e89aee4c1139610d007d67da2acd515a

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