From 461911b3d6382efa4bf0d6b4230d314a062b6733 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 12 Sep 2024 16:14:08 +0300 Subject: [PATCH 1/2] docs: update project name --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0aaca43..05a932d 100644 --- a/README.md +++ b/README.md @@ -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, }, }, From ea5c9e7f7f7c26a1bc4866fb4b4b6c3151d882b1 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 12 Sep 2024 16:19:50 +0300 Subject: [PATCH 2/2] chore: add project classifiers --- pyproject.toml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b0e73c8..496cacd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,29 @@ [project] name = "bunyan-formatter" 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 = [] 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", + "Topic :: Logging :: Bunyan", +] + +[project.urls] +Source = "https://github.com/kristoferssolo/bunyan-formatter" +Tracker = "https://github.com/kristoferssolo/bunyan-formatter/issues" [build-system] requires = ["hatchling"]