Metadata-Version: 2.4
Name: tbint-logger
Version: 0.0.2
Summary: A simple logger for tbint projects
Project-URL: Homepage, https://github.com/tb-international-gmbh/tbint-logger-py
Project-URL: Issues, https://github.com/tb-international-gmbh/tbint-logger-py/issues
Author-email: Marco Kellershoff <marco.kellershoff@tbint.de>
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# 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:

```sh
# 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:

```python
from tbint_logger import tbint_logger

logger = tbint_logger.Logger()

logger.info_sync(
    tbint_logger.Data(
        description="This is a test",
    )
)
```

## Development

```sh
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/*
```

