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
Release history Release notifications | RSS feed
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.8.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file dgtl_logging-0.0.8.tar.gz
.
File metadata
- Download URL: dgtl_logging-0.0.8.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830738fa6690d7a75eecde0fd8d2bd458cc0c5efe8000dc9ec955bdd5397097a |
|
MD5 | cf887f852512ca667caf2ff08a7df500 |
|
BLAKE2b-256 | b6b969520e0f8cfbcbc0da1442357c04b2a531d086032f7bcbc1d4b6cb696698 |
File details
Details for the file dgtl_logging-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: dgtl_logging-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 002a82dc3dce2e96fbcf992f33fd0ff998f83c8c006cfc1460fdf01697b39982 |
|
MD5 | c25a847b0720eed673a53cd0719fe0b2 |
|
BLAKE2b-256 | b5cc0e855b4046091420e54367169cdb494f25de1a095228ec43b3088b7bc7db |