|
1 | 1 | # json-logging |
2 | 2 | Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as [ELK](https://www.elastic.co/elk-stack), [EFK](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-elasticsearch-fluentd-and-kibana-efk-logging-stack-on-kubernetes) |
3 | 3 |
|
4 | | -If you're using Cloud Foundry, it worth to check out the library [SAP/cf-python-logging-support](https://github.com/SAP/cf-python-logging-support) which I'm also original author. |
| 4 | +If you're using Cloud Foundry, it might worth to check out the library [SAP/cf-python-logging-support](https://github.com/SAP/cf-python-logging-support) which I'm also original author. |
5 | 5 | # Content |
6 | 6 | 1. [Features](#1-features) |
7 | 7 | 2. [Usage](#2-usage) |
@@ -222,15 +222,7 @@ Take a look at [**json_logging/base_framework.py**](blob/master/json_logging/fra |
222 | 222 |
|
223 | 223 | - Check whether the same handler is added to both parent and child loggers [2] |
224 | 224 | - If you using flask, by default option **use_reloader** is set to **True** which will start 2 instances of web application. change it to False to disable this behaviour [\[3\]](#3-more-on-flask-use-reloader) |
225 | | -3. Can not install Sanic on Windows? |
226 | 225 |
|
227 | | -you can install Sanic on windows by running these commands: |
228 | | -``` |
229 | | -git clone --branch 0.7.0 https://github.com/channelcat/sanic.git |
230 | | -set SANIC_NO_UVLOOP=true |
231 | | -set SANIC_NO_UJSON=true |
232 | | -pip3 install . |
233 | | -``` |
234 | 226 | # 7. References |
235 | 227 | ## [0] Full logging format references |
236 | 228 | 2 types of logging statement will be emitted by this library: |
@@ -336,40 +328,3 @@ https://docs.python.org/2/library/logging.html#logging.Logger.propagate |
336 | 328 |
|
337 | 329 | ## [3] more on flask use_reloader |
338 | 330 | http://flask.pocoo.org/docs/0.12/errorhandling/#working-with-debuggers |
339 | | - |
340 | | -# Development |
341 | | -create file **.pypirc** |
342 | | - |
343 | | -``` |
344 | | -[distutils] |
345 | | -index-servers = |
346 | | - pypi |
347 | | - pypitest |
348 | | -
|
349 | | -[pypi] |
350 | | -repository: https://upload.pypi.org/legacy/ |
351 | | -username: |
352 | | -password: |
353 | | -
|
354 | | -[pypitest] |
355 | | -repository: https://test.pypi.org/legacy/ |
356 | | -username= |
357 | | -password= |
358 | | -``` |
359 | | -build |
360 | | -```bash |
361 | | -python setup.py bdist_wheel --universal |
362 | | -python setup.py sdist |
363 | | -``` |
364 | | - |
365 | | -pypitest |
366 | | -``` |
367 | | -twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
368 | | -pip3 install json_logging --index-url https://test.pypi.org/simple/ |
369 | | -``` |
370 | | -pypi |
371 | | -``` |
372 | | -pip3 install json_logging |
373 | | -twine upload --repository-url https://upload.pypi.org/legacy/ dist/* |
374 | | -
|
375 | | -``` |
0 commit comments