4 Commits

Author SHA1 Message Date
d32365f4bf fix: pyproject.toml 2024-09-12 16:27:16 +03:00
1cfaad6c69 Merge pull request #3 from kristoferssolo/docs
Update docs
2024-09-12 16:24:00 +03:00
ea5c9e7f7f chore: add project classifiers 2024-09-12 16:19:50 +03:00
461911b3d6 docs: update project name 2024-09-12 16:14:08 +03:00
2 changed files with 22 additions and 3 deletions

View File

@@ -72,13 +72,15 @@ logger.critical("This is a critical message")
In your Django project's `settings.py` file, add the following logging configuration:
```python
BASE_DIR = Path(__file__).resolve().parent.parent
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"bunyan": {
"()": BunyanFormatter,
"project_name": "cashflow",
"project_name": "MyProject",
"project_root": BASE_DIR,
},
},

View File

@@ -1,11 +1,28 @@
[project]
name = "bunyan-formatter"
version = "0.1.1"
description = "Bunyan Formatter for Python"
version = "0.1.3"
description = "A custom formatter for Python's logging module that outputs logs in the Bunyan JSON format."
dependencies = []
readme = "README.md"
requires-python = ">=3.9"
authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }]
license = { file = "LICENSE" }
keywords = ["logger", "logging", "bunyan", "formatter"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
]
[project.urls]
Source = "https://github.com/kristoferssolo/bunyan-formatter"
Tracker = "https://github.com/kristoferssolo/bunyan-formatter/issues"
[build-system]
requires = ["hatchling"]