Skip to main content

DGTL Health BV NEN7513 compliant logging objects

Project description

dgtl-logging

NEN7513 compliant logging library according to the current scope of DGTL Health BV

Updating

  • update setup.py with new version number
  • push or merge pull request to master branch and a github action will build and publish the package

Installing

pip install dgtl-logging

Usage

Usage of the EventObject and UserObject are similar and have a validate() method built-in. The CustomObject does not have predefined parameters.

Use the validate() method just before passing the object to your logging function.

from dgtl_logging.dgtl_logging import CustomObject, EventObject, UserObject

event = EventObject()
event.update_parameters(gebeurteniscode='code1')
event.update_parameters(actiecode='action1', utcisodatetime='2023-10-10T00:00:00Z')
event.update_parameters(identificatortype='type1', identificator='id1', aard='typeA')

To validate if all required parameters are filled: event.validate()

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

dgtl_logging-0.0.6.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

dgtl_logging-0.0.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file dgtl_logging-0.0.6.tar.gz.

File metadata

  • Download URL: dgtl_logging-0.0.6.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for dgtl_logging-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6c5a9049638c8b714c906b4b9fbe7dd48178ba3833079cc49cd418cbf36c5ca9
MD5 5a3b9bdc4645b986eb4d5a298bf9e61d
BLAKE2b-256 724131dbbc19d16626506846b0018dc3378702a81e0a66b4d30668fad0872989

See more details on using hashes here.

File details

Details for the file dgtl_logging-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: dgtl_logging-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for dgtl_logging-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0f1814fc017367c561064441f79e7b1648ed6377a676a2393b4216fc4a0bbd
MD5 b0b98aa801963442555f1605c7ed543f
BLAKE2b-256 ee909a0dfddd2081fba8129da7a511c7cdd93c1aa23f11ecd703a805f55cd444

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