log2me 0.1.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

log2me 0.1.0

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.