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

On pypi: 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.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

dgtl_logging-0.0.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dgtl_logging-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 34dbc85129069cc24e57d5e07897a2256299e084a64f589166c120a6b89a94c8
MD5 cb55fa78ac597406a6b5011f0f8bec71
BLAKE2b-256 4fe0f2aeb6d95955d16e7bacd96071a5ea0c5264a10547b40b9ad26175f9c61d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dgtl_logging-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cb352fbd5f8b41836852c534652225ab965a9e6526242655c64959fc9f718eeb
MD5 ef782b2af4069625eee29f7999738419
BLAKE2b-256 335791a25dd765712c3a1c2668884f092d491d729fbd9c40582d593ce6699ec1

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