No project description provided
Project description
How to use
Generate a whl file by running the following command
poetry build
Upload the generated whl file in the dist folder to the environment in Microsoft Fabric
Import the package in a notebook
from logger import Logger
Create a logger object
logger = Logger("{DATADOG_API_KEY}", "{CUSTOMER}", "{ENVIROMENT}", "{WORKSPACE_NAME}", "{LOG_LEVEL_TRESHOLD}")
Default logging. If given threshold is met it will be send towards datadog,
!IMPORTANT! The source is mandatory and should be used in every default log for tracking in DataDog
logger.info("{SOURCE}", "This is a test message")
logger.warning("{SOURCE}", "This is a test message")
logger.critical("{SOURCE}", "This is a test message")
logger.debug("{SOURCE}", "This is a test message")
Logging pipeline metrics DataDog
logger.failed("{SOURCE}")
logger.success("{SOURCE}")
Development
Setup Environment
Install poetry using the following command
pip install poetry
Start Enviroment
To start the environment, run the following command
poetry shell
Install Dependencies
pip install -r requirements.txt
Build Project
poetry build
Run Tests
python -m unittest discover
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
lr_logger-0.1.6.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file lr_logger-0.1.6.tar.gz
.
File metadata
- Download URL: lr_logger-0.1.6.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48624f45a61aa780e1fc7954ff29a532def9cfcd6119acb36b33f385ea28865a |
|
MD5 | b2da87acaffa6bf18d17d0c526c1775a |
|
BLAKE2b-256 | b138d04933449cb5c2a3c25e2bafec4f885102ec3d460e0b2edc285feb5fa2c8 |
File details
Details for the file lr_logger-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: lr_logger-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b39a8027dfa14f983856aa2f6866d66681d7ec47aaad7ffee7a20c510ad6d71e |
|
MD5 | 25b02286110dd1d691d53872a2932bb7 |
|
BLAKE2b-256 | 026b4f4256d28e806bd1d0140340ba7054c122742682b201c76290f9e3dd7f6f |