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

Uploaded Source

Built Distribution

mongo_system_log-0.0.4-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

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