Skip to content

Commit ed82bc6

Browse files
committed
release 0.1.0
1 parent 2e6d0a0 commit ed82bc6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

7+
## 0.1.0 - 2019-05-20
8+
- Add [Connexion](https://github.com/zalando/connexion) support
9+
710
## 0.0.13 - 2019-05-18
811
- Fix #19
912

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If you're using Cloud Foundry, it worth to check out the library [SAP/cf-python-
2222
2. Auto extract **correlation-id** for distributed tracing [\[1\]](#1-what-is-correlation-idrequest-id)
2323
3. Lightweight, no dependencies, minimal configuration needed (1 LoC to get it working)
2424
4. Fully compatible with Python **logging** module. Support both Python 2.7.x and 3.x
25-
5. Support HTTP request instrumentation. Built in support for [Flask](http://flask.pocoo.org/) & [Sanic](https://github.com/channelcat/sanic) & [Quart](https://gitlab.com/pgjones/quart). Extensible to support other web frameworks. PR welcome :smiley: .
25+
5. Support HTTP request instrumentation. Built in support for [Flask](https://github.com/pallets/flask/), [Sanic](https://github.com/channelcat/sanic), [Quart](https://gitlab.com/pgjones/quart), [Connexion](https://github.com/zalando/connexion). Extensible to support other web frameworks. PR welcome :smiley: .
2626
6. Support inject arbitrary extra properties to JSON log message.
2727

2828
# 2. Usage

example/connexion-example/hello.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
def post_greeting(name: str) -> str:
88
return 'Hello {name}'.format(name=name)
99

10-
def create()
10+
11+
def create():
1112
app = connexion.FlaskApp(__name__, port=9090, specification_dir='openapi/')
1213
json_logging.ENABLE_JSON_LOGGING = True
1314
json_logging.init(framework_name='connexion')
@@ -16,7 +17,7 @@ def create()
1617
app.add_api('helloworld-api.yaml', arguments={'title': 'Hello World Example'})
1718
return app
1819

19-
if __name__ == '__main__':
2020

21+
if __name__ == '__main__':
2122
app = create()
2223
app.run()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name="json-logging",
15-
version='0.0.13',
15+
version='0.1.0',
1616
packages=find_packages(exclude=['contrib', 'docs', 'tests*', 'example', 'dist', 'build']),
1717
license='Apache License 2.0',
1818
description="JSON Python Logging",

0 commit comments

Comments
 (0)