Basic logging helpers.
Project description
log2me
Basic logging helpers.
Installation
python -m pip install log2me
Usage
Include the logging settings into your model and, at application start-up time, initialize the loggers.
from pydantic_settings import BaseSettings
from log2me import LogSettings, get_engine
class AppSettings(BaseSettings):
# ...
logs: LogSettings = Field(
description="Logging settings.",
)
# ...
settings = AppSettings()
setup_logging(settings.logs)
Development
Start by creating a virtual environment and installing the dependencies.
If you have a make
command available, you can run make init
after
the virtual environment is created and activated. Otherwise, you can run
the following commands:
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .[dev]
On Windows, to be able to serve the documentation, you may also need to
install the cairo2
package:
pip install pipwin
pipwin install cairocffi
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
log2me-0.1.0.tar.gz
(11.7 kB
view details)
Built Distribution
File details
Details for the file log2me-0.1.0.tar.gz
.
File metadata
- Download URL: log2me-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d58b6eb4cb703164b1ea9b087717b96240f4040a768c886bfcb4b5ad04f1b7b |
|
MD5 | 28bbc1c5306d91dd368703b520b67fe0 |
|
BLAKE2b-256 | bc6e128b67ad0f6c0d9c24faff4d9c8ca307edcff511a4a790266c4b6418fd6d |
File details
Details for the file log2me-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: log2me-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5116ae2e51a5c6fb5d228d1db2e6a1cb081cfc135311c838de027c48899949fb |
|
MD5 | 97fbad54ceb7aef371b360b5bbac404b |
|
BLAKE2b-256 | 4a3ced4eb66a9e60759a39d2c63aca6a68398783c9a19c1687484134abbc7235 |