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

Uploaded Source

Built Distribution

mongo_system_log-0.0.8-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

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

Hashes for mongo-system-log-0.0.8.tar.gz
Algorithm Hash digest
SHA256 0b62eaf8b6991cd77f5c179b84e6657457087b953df1247ff4057590b043e69c
MD5 56fe6afa442209b2d6d5331c7359f539
BLAKE2b-256 b6c9b1f9167bba0d2a3479c9818bc7c9d3999da016641c0387f8a1f61233eb1a

See more details on using hashes here.

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

Hashes for mongo_system_log-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d8baf974b09d49e4343f627c32b0b3a154bd8b5dfd1c9a4218bba82b71a1cfc9
MD5 16a23184bafa497c6812daf99d0b3cfd
BLAKE2b-256 51e7b1ceddb77d9d7b9661e005aa15dc0d48da01ffc1cc67f58d0dc83f05b235

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