File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed
Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ logger.warning("This is a warning example")
232232
233233
234234
235- # Context Manager Support
235+ # Context Manager Support (slow but if you want immediate, deterministic cleanup for a specific scope)
236236
237237All logger types support context managers for automatic resource cleanup and exception safety:
238238
@@ -385,7 +385,7 @@ audit_logger.info("User admin logged in")
385385```
386386
387387## Env Variables (Optional | Production)
388- .env variables can be used by leaving all options blank when calling the function
388+ The .env variables file can be used by leaving all options blank when calling the function
389389If not specified inside the .env file, it will use the dafault value
390390This is a good approach for production environments, since options can be changed easily
391391``` python
Original file line number Diff line number Diff line change 22requires = [" poetry-core>=2.0.0,<3.0.0" ]
33build-backend = " poetry.core.masonry.api"
44
5-
65[tool .poetry ]
76name = " pythonLogs"
8- version = " 4.0.2 "
7+ version = " 4.0.3 "
98description = " High-performance Python logging library with file rotation and optimized caching for better performance"
109license = " MIT"
1110readme = " README.md"
@@ -31,51 +30,43 @@ classifiers = [
3130 " Natural Language :: English" ,
3231]
3332
34-
3533[tool .poetry .dependencies ]
3634python = " ^3.10"
3735pydantic = " ^2.11.7"
3836pydantic-settings = " ^2.10.1"
3937python-dotenv = " ^1.1.1"
4038
41-
4239[tool .poetry .group .test .dependencies ]
4340coverage = " ^7.9.2"
4441poethepoet = " ^0.36.0"
4542psutil = " ^7.0.0"
4643pytest = " ^8.4.1"
4744
45+ [tool .poe .tasks ]
46+ _test = " coverage run -m pytest -v"
47+ _coverage_report = " coverage report"
48+ _coverage_xml = " coverage xml"
49+ tests = [" _test" , " _coverage_report" , " _coverage_xml" ]
50+ test = [" tests" ]
4851
4952[tool .poetry .group .test ]
5053optional = true
5154
52-
5355[tool .black ]
5456line-length = 120
5557skip-string-normalization = true
5658
57-
5859[tool .pytest .ini_options ]
5960markers = [
6061 " slow: marks tests as slow (deselect with '-m \" not slow\" ')"
6162]
6263
63-
6464[tool .coverage .run ]
6565omit = [
6666 " tests/*" ,
6767]
6868
69-
7069[tool .coverage .report ]
7170exclude_lines = [
7271 " pragma: no cover" ,
7372]
74-
75-
76- [tool .poe .tasks ]
77- _test = " coverage run -m pytest -v"
78- _coverage_report = " coverage report"
79- _coverage_xml = " coverage xml"
80- tests = [" _test" , " _coverage_report" , " _coverage_xml" ]
81- test = [" tests" ]
You can’t perform that action at this time.
0 commit comments