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 twine
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.3.tar.gz
(4.2 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.3.tar.gz.
File metadata
- Download URL: tbint_logger-0.0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649d5bc071e18f16ab401bc6151f31f6e0faec7786d6f451d7e6db989051abbe
|
|
| MD5 |
0ccbb087e9442b4e2dff4fbc4dcc845b
|
|
| BLAKE2b-256 |
67ec3860a15dd41d6a6495ee78da91cffb5b9be5fd5081263fd95c04492454d2
|
File details
Details for the file tbint_logger-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tbint_logger-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.7 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 |
eee5359dc715deaf0d94dd45c43b143fe1aca0b5a3188e61796dec1ff9d669e4
|
|
| MD5 |
628a799570e863fe2f71dc9bf39cdf1b
|
|
| BLAKE2b-256 |
02996aa2bb2a6bca4381b0189c4283cc865835cfd9e6955d039c3354b74ff38a
|