@@ -15,20 +15,14 @@ Documentation
1515-------------
1616[ https://logging-extras.readthedocs.io/en/latest/ ] ( https://logging-extras.readthedocs.io/en/latest/ )
1717
18- Distribution
18+ Installation
1919------------
2020
21- To create a source and wheel distribution, run:
22-
23- python -m pip install wheel
24- python setup.py clean sdist bdist_wheel
25-
26- It is recommended to use a virtualenv.
21+ Install [ logging-extras] ( https://pypi.org/project/logging-extras/ ) using pip
2722
28- Installation
29- ------------
23+ pip install logging-extras
3024
31- Download the latest binary or source package from github [ logging-extras releases ] ( https://github.com/zobayer1/logging-extras/releases )
25+ Alternatively, download the latest binary or source package from [ github ] ( https://github.com/zobayer1/logging-extras/releases )
3226
3327Install wheel package with ` pip ` :
3428
@@ -42,36 +36,8 @@ Install source package as editable:
4236
4337Please refer to documentation pages for available modules.
4438
45- Development
46- -----------
47-
48- Additional development and documentation dependencies can be installed using extras. It is recommended to use a virtualenv.
49-
50- ### Use Pre-Commit Hooks
51-
52- Install pre-commit hooks and dependencies:
53-
54- pip install -e .[dev]
55- pre-commit install
56- pre-commit autoupdate
57- pre-commit run --all-files
58-
59- ### Run Tests
60-
61- Run tests from the source with Pytest:
62-
63- pip install -e .[dev]
64- pytest -s
65-
66- ### Generate Documentation
67-
68- Generate documentation from the source with Sphinx:
69-
70- pip install -e .[docs]
71- cd docs
72- mkdir -p _static _templates
73- make html
74- python -m http.server --directory build/html
39+ Module Index
40+ ============
7541
7642QueueListenerHandler
7743--------------------
@@ -100,7 +66,7 @@ handlers:
10066 filename: 'test_logger.log'
10167 formatter: simple
10268 queue_handler:
103- class: logging_.QueueListenerHandler
69+ class: logging_.handlers. QueueListenerHandler
10470 handlers:
10571 - cfg://handlers.console
10672 - cfg://handlers.file_handler
@@ -141,6 +107,43 @@ logger.error("This is an error log")
141107logger.critical("This is a critical log")
142108```
143109
144- ### Sources
110+ Development
111+ -----------
112+
113+ Additional development and documentation dependencies can be installed using extras. It is recommended to use a virtualenv.
114+
115+ ### Use Pre-Commit Hooks
116+
117+ Install pre-commit hooks and dependencies:
118+
119+ pip install -e .[dev]
120+ pre-commit install
121+ pre-commit autoupdate
122+ pre-commit run --all-files
123+
124+ ### Run Tests
125+
126+ Run tests from the source with Pytest:
127+
128+ pip install -e .[dev]
129+ pytest -s
130+
131+ ### Generate Documentation
132+
133+ Generate documentation from the source with Sphinx:
134+
135+ pip install -e .[docs]
136+ cd docs
137+ mkdir -p _static _templates
138+ make html
139+ python -m http.server --directory build/html
140+
141+ ### Create Distribution Packages
142+
143+ To create a source and wheel distribution, run:
144+
145+ git clone [email protected] :zobayer1/logging-extras.git 146+ python -m pip install wheel
147+ python setup.py clean sdist bdist_wheel
145148
146- 1 . ` QueueListenerHandler ` was inspired by [ Rob Blackbourn's implementation ] ( https://rob-blackbourn.medium.com/how-to-use-python-logging-queuehandler-with-dictconfig-1e8b1284e27a ) .
149+ ** Note: ** This project uses ` setuptools-scm ` to generate build versions from git tags. Build system will raise errors if you are trying to build packages outside a git repo .
0 commit comments