Skip to main content

simple mongoDb logger

Project description

Example usage

logger = MongoDBLogger( mongo_uri="mongodb://mongodb1.example.com,mongodb2.example.com/?replicaSet=MyReplicaSet", db_name="your_custom_db_name", collection_name="logs" ) try: # Your code here 1 / 0 except Exception as e: args = { "doc_id":"", "app":"something" } logger.log_exception(e,args)

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

DDMongoLogger-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DDMongoLogger-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file DDMongoLogger-0.1.1.tar.gz.

File metadata

  • Download URL: DDMongoLogger-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for DDMongoLogger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d5b18c7a4354f21ad664288db033113677fc8344a2e331d632f1b0c764184987
MD5 509b49f7a8f9121cbc149b34b4f3a89c
BLAKE2b-256 fb32391a3fc4166dc48f333ee8cc32ccb6802d0ff07cd3f7c6cd3ca6173148f9

See more details on using hashes here.

File details

Details for the file DDMongoLogger-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: DDMongoLogger-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for DDMongoLogger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b73da773b9945cbbeaa086ca00dbc7da32b62794ec07bc8b798f47930aab7b
MD5 3bb305ba8f3334237fc93dc6e21f2d0a
BLAKE2b-256 3c7240803b908648e592b66e9c33cad3b5e916e6e7318303de8e25667cc4a1a9

See more details on using hashes here.

Supported by

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