A simple logger for tbint projects
Project description
TBint Logger Python
The TBINT Logger Python is a simple logger that can also send logs to Datadog.
It streamlines the process of logging, conforming to our standards.
Usage
Create a .env file with the following content:
# LOG_LEVEL can be debug, info, warning, error
LOG_LEVEL=debug
DD_SERVICE_NAME=YOUR_SERVICE_NAME_HERE
DD_SOURCE=production_or_any_other_environment
# Get these values from Datadog
DD_API_ENDPOINT=https://http-intake.logs.datadoghq.eu/api/v2/logs
# Get these values from Datadog
DD_APP_KEY=YOUR_DD_APP_KEY
Create this python file:
from tbint_logger import tbint_logger
logger = tbint_logger.Logger()
logger.info_sync(
tbint_logger.Data(
description="This is a test",
)
)
Development
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade build
python3 -m twine upload --repository pypi dist/*
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
tbint_logger-0.0.1.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tbint_logger-0.0.1.tar.gz.
File metadata
- Download URL: tbint_logger-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a96127efb80eb05158e8f5a82d17bf508a58f4b3a63a2de8b06825f28c7e3a11
|
|
| MD5 |
78b4a7431d7369e9d3966bb0ed1b3b26
|
|
| BLAKE2b-256 |
69d236cc26723265b71feab289727690decd113ec8dc4918d8e612792bbf4263
|
File details
Details for the file tbint_logger-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tbint_logger-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cde66075ae70f7fb519209a84257f516f891b76cfb0fdef1f7a2584af88a0efc
|
|
| MD5 |
acf5a61b4c9bbd1e011135805014d4d7
|
|
| BLAKE2b-256 |
ba32a4f9068724c2a153fca9aed38faccd837b9820a832dc20ce32f6be385928
|