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.9.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file dgtl_logging-0.0.9.tar.gz
.
File metadata
- Download URL: dgtl_logging-0.0.9.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 | ee7d38b048a0ff869c16be71fd0f85a4a844f5f72cdab620a7a1820998637d3f |
|
MD5 | dcb82876b223f3a9bf1b94365ce5792c |
|
BLAKE2b-256 | 1a8a1520cb2cd87581ef3dad482c1d81ea73f97a83ae2d531d3aa8f309eadaea |
File details
Details for the file dgtl_logging-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: dgtl_logging-0.0.9-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 | 1085e921f5d49d924c9e02cc6830142f7639be9a3809e36c50e6b8bab6267ef5 |
|
MD5 | 05416b5b428577c8789c48dfd0b31a41 |
|
BLAKE2b-256 | fe66a810e08779958002394a90592608a3730f55df0543f178f5b1a92d51e243 |