4 Commits

Author SHA1 Message Date
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
b24a924a4f chore: bump version to v0.1.1 2024-09-12 16:05:02 +03:00
2 changed files with 23 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: In your Django project's `settings.py` file, add the following logging configuration:
```python ```python
BASE_DIR = Path(__file__).resolve().parent.parent
LOGGING = { LOGGING = {
"version": 1, "version": 1,
"disable_existing_loggers": False, "disable_existing_loggers": False,
"formatters": { "formatters": {
"bunyan": { "bunyan": {
"()": BunyanFormatter, "()": BunyanFormatter,
"project_name": "cashflow", "project_name": "MyProject",
"project_root": BASE_DIR, "project_root": BASE_DIR,
}, },
}, },

View File

@@ -1,11 +1,29 @@
[project] [project]
name = "bunyan-formatter" name = "bunyan-formatter"
version = "0.1.0" version = "0.1.1"
description = "Bunyan Formatter for Python" description = "A custom formatter for Python's logging module that outputs logs in the Bunyan JSON format."
dependencies = [] dependencies = []
readme = "README.md" readme = "README.md"
requires-python = ">=3.9" requires-python = ">=3.9"
authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }] 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",
"Topic :: Logging :: Bunyan",
]
[project.urls]
Source = "https://github.com/kristoferssolo/bunyan-formatter"
Tracker = "https://github.com/kristoferssolo/bunyan-formatter/issues"
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]