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
Metadata
Release files for log2me 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| log2me-0.1.0.tar.gz | 11.7 kB | Without provenance | Details for log2me-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| log2me-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for log2me-0.1.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / log2me-0.1.0.tar.gz
| Download URL | log2me-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d58b6eb4cb703164b1ea9b087717b96240f4040a768c886bfcb4b5ad04f1b7b
|
|
BLAKE2b-256 checksum How to use checksums |
bc6e128b67ad0f6c0d9c24faff4d9c8ca307edcff511a4a790266c4b6418fd6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / log2me-0.1.0-py3-none-any.whl
| Download URL | log2me-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5116ae2e51a5c6fb5d228d1db2e6a1cb081cfc135311c838de027c48899949fb
|
|
BLAKE2b-256 checksum How to use checksums |
4a3ced4eb66a9e60759a39d2c63aca6a68398783c9a19c1687484134abbc7235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for log2me 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.