Skip to content

Commit 4b86a72

Browse files
author
Ivaylo Korakov
committed
Uploaded to PyPi
1 parent 26bac7e commit 4b86a72

File tree

4 files changed

+44
-10
lines changed

4 files changed

+44
-10
lines changed

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2019, kubernetes
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This Python module makes logging easy for your application.
33
The logger outputs JSON formatted logs for ingesting into Elastic.
44

55
The module implements the ECS (Elastic Common Schema) specification that
6-
can be found at for quick reference:
6+
can be found at for quick reference:
77
[ECS Field Reference](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html#ecs-field-reference)
88

99
## Usage
@@ -12,8 +12,12 @@ can be found at for quick reference:
1212
from kubi_ecs_logger import Logger, Severity
1313

1414
# Set some defaults in the start of your app
15+
# If in development mode the lib will output formatted json.
1516
Logger().dev = True
17+
# The minimum level of severity for outputing. E.g. If set to INFO then DEBUG logs will not
18+
# be printed to standard out
1619
Logger().severity_output_level = Severity.INFO
20+
# Set default key/value pairs for the different classes that will always be appended before final output
1721
Logger().defaults = {
1822
"event": {
1923
"test": "test value"
@@ -55,7 +59,7 @@ Logger() \
5559
# "event": {
5660
# "action": "request received",
5761
# "category": "requests",
58-
# "test": "test value"
62+
# "test": "test value" # From defaults
5963
# },
6064
# "httpresponse": {
6165
# "status_code": "200"

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Inside of setup.cfg
2+
[metadata]
3+
description-file = README.md

setup.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@
101101

102102
# Indicate who your project is intended for
103103
'Intended Audience :: Developers',
104-
'Topic :: Software Development :: Logging Tools',
104+
'Topic :: System :: Logging',
105105

106106
# Pick your license as you wish
107-
'License :: Apache2 License',
107+
'License :: OSI Approved :: BSD License',
108108

109109
# Specify the Python versions you support here. In particular, ensure
110110
# that you indicate whether you support Python 2, Python 3 or both.
@@ -197,10 +197,8 @@
197197
# issues, where the source is hosted, where to say thanks to the package
198198
# maintainers, and where to support the project financially. The key is
199199
# what's used to render the link text on PyPI.
200-
# project_urls={ # Optional
201-
# 'Bug Reports': 'https://github.com/pypa/sampleproject/issues',
202-
# 'Funding': 'https://donate.pypi.org',
203-
# 'Say Thanks!': 'http://saythanks.io/to/example',
204-
# 'Source': 'https://github.com/pypa/sampleproject/',
205-
# },
200+
project_urls={ # Optional
201+
"Kumina": 'https://kumina.nl/index',
202+
'Source': 'https://github.com/kumina/kubi_ecs_logger'
203+
}
206204
)

0 commit comments

Comments
 (0)