Installation¶
Installing azure-functions-logging requires Python 3.10 or higher. The package has no external runtime dependencies.
Using pip¶
Install from PyPI:
To install a specific version:
Adding to Requirements¶
For Azure Functions projects, add the package to your requirements.txt file to ensure it is available in the deployment environment:
Azure Functions reads requirements.txt during deployment and installs the listed packages in the remote environment.
Using pyproject.toml¶
If your project uses pyproject.toml for dependency management:
Development Installation¶
To contribute to the project or run tests locally, clone the repository and install in editable mode with development dependencies:
git clone https://github.com/yeongseon/azure-functions-logging.git
cd azure-functions-logging
pip install -e ".[dev]"
This installs the package in editable mode along with development tools (pytest, mypy, ruff, bandit).
Prerequisites¶
- Python: >= 3.10 (tested on 3.10, 3.11, 3.12, 3.13, 3.14)
- External Dependencies: None. This package uses only the Python standard library at runtime.
- Build System: Hatch (for development and publishing)
Verifying the Installation¶
After installation, verify the package is available:
Or from the command line:
Upgrading¶
To upgrade to the latest version:
Compatibility Notes¶
- This package is designed for the Azure Functions Python v2 programming model
- It works in both local development environments and Azure-hosted environments
- The package automatically detects its runtime environment and adjusts behavior accordingly
- While designed for Azure Functions, the logging helpers work in any Python application -- the Azure-specific features (context injection, host.json detection) simply have no effect outside Azure