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.7.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file dgtl_logging-0.0.7.tar.gz
.
File metadata
- Download URL: dgtl_logging-0.0.7.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 | 137e04f67b37de96ae1950cb0a7f4390f2eb15fa3f68fcbd05abaa468054e98d |
|
MD5 | d6beff31fcff58389bba1532f5062632 |
|
BLAKE2b-256 | 87555226e0b35fe01fa03058505a7aea20081b3b0e94605b2eaf44461bce7c64 |
File details
Details for the file dgtl_logging-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: dgtl_logging-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.3 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 | a1527a29e64c50601b7af7af39a8d18d5630476e82754df41e82181ebe13ce48 |
|
MD5 | 380dc06235c19acc9b0a69d0fe329d0e |
|
BLAKE2b-256 | f1f4955d998260fe2a75a9b08ce43438c2f02e7d91cbf47ce490faa5980dd7b6 |