Skip to content

Commit 610c13c

Browse files
committed
refactor: rename logging-conf to readylog
1 parent 8ed4a62 commit 610c13c

File tree

5 files changed

+136
-37
lines changed

5 files changed

+136
-37
lines changed

README.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,2 @@
1-
# logging_conf
2-
Logging_conf is a logging configuration template for Python's logging.
3-
4-
## Files
5-
This repository contains two files, of which you actually only need the `logging_conf.py`.
6-
The other is just an example code to showcase the usage of the configuration.
7-
8-
### `logging_conf.py`
9-
Copy this into your project folder and import the `create_dict_config` function from it in your app's entrypoint.
10-
11-
Usage Example:
12-
```py
13-
from logging import getLogger
14-
from logging.config import dictConfig as configure_logging
15-
16-
from .logging_conf import logging_configuration
17-
18-
19-
configure_logging(logging_configuration)
20-
21-
logger = getLogger(__name__)
22-
```
23-
24-
and you are ready to go.
25-
1+
# readylog
2+
Readylog is a logging configuration template for Python's logging.

pyproject.toml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "logging-conf"
2+
name = "readylog"
33
version = "0.0.0"
4-
description = "Add your description here"
4+
description = "Creates a reasonable logging configuration for a Python project"
55
license = "BSD-2-Clause"
66
readme = "README.md"
77
authors = [
@@ -13,18 +13,29 @@ classifiers = [
1313
"Development Status :: 4 - Beta",
1414
"License :: OSI Approved :: BSD License",
1515
"Programming Language :: Python :: 3.11",
16-
"Programming Language :: Unix Shell",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
18+
"Programming Language :: Python :: 3.14",
19+
"Programming Language :: Python :: 3.15",
1720
]
1821
dependencies = []
1922

2023
[build-system]
21-
requires = ["uv_build>=0.8.17,<0.9.0"]
24+
requires = ["uv_build>=0.9,<0.10.0"]
2225
build-backend = "uv_build"
2326

27+
[dependency-groups]
28+
lint = [
29+
"ruff>=0.14.0",
30+
]
31+
test = [
32+
"pytest>=8.4.2",
33+
]
34+
2435
[project.urls]
25-
Homepage = "http://github.com/fleetingbytes/logging-conf"
26-
Documentation = "http://github.com/fleetingbytes/logging-conf/blob/master/README.md"
27-
Repository = "http://github.com/fleetingbytes/logging-conf.git"
28-
Issues = "http://github.com/fleetingbytes/logging-conf/issues"
29-
Changelog = "http://github.com/fleetingbytes/logging-conf/blob/master/CHANGELOG.md"
36+
Homepage = "http://github.com/fleetingbytes/readylog"
37+
Documentation = "http://github.com/fleetingbytes/readylog/blob/master/README.md"
38+
Repository = "http://github.com/fleetingbytes/readylog.git"
39+
Issues = "http://github.com/fleetingbytes/readylog/issues"
40+
Changelog = "http://github.com/fleetingbytes/readylog/blob/master/CHANGELOG.md"
3041

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from logging import getLogger
99
from logging.config import dictConfig as configure_logging
1010
11-
from .logging_conf import logging_configuration
11+
from readylog import logging_configuration
1212
1313
1414
configure_logging(logging_configuration)
@@ -41,13 +41,13 @@ def create_dict_config(logfile: Path) -> dict[str, str]:
4141
}
4242

4343
root_file_formatter_conf = {
44-
"format": f'[ROOT LOG] {custom_file_formatter_conf["format"]}',
44+
"format": f"[ROOT LOG] {custom_file_formatter_conf['format']}",
4545
"style": "{",
4646
"datefmt": "%a %H:%M:%S",
4747
}
4848

4949
root_console_formatter_conf = {
50-
"format": f'[ROOT LOG] {custom_console_formatter_conf["format"]}',
50+
"format": f"[ROOT LOG] {custom_console_formatter_conf['format']}",
5151
"style": "{",
5252
"datefmt": "%a %H:%M:%S",
5353
}

tests/test_readylog.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_stub():
2+
pass

uv.lock

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)