Browse Source

Merge pull request #67 from logzio/metadata-and-readme-update

metadata and readme updates
opensearch
Tamir Michaeli 3 years ago
committed by GitHub
parent
commit
ef65fd3b2f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 5 deletions
  1. +2
    -0
      .travis.yml
  2. +12
    -4
      README.md
  3. +1
    -1
      setup.py

+ 2
- 0
.travis.yml View File

@ -19,6 +19,8 @@ matrix:
env: TOXENV=py37
- python: 3.8
env: TOXENV=py38
- python: 3.9
env: TOXENV=py39
install:
- pip install tox


+ 12
- 4
README.md View File

@ -76,6 +76,8 @@ format={"additional_field": "value"}
- Debug flag. Set to True, will print debug messages to stdout. (defaults to "False")
- Backup logs flag. Set to False, will disable the local backup of logs in case of failure. (defaults to "True")
- Network timeout, in seconds, int or float, for sending the logs to logz.io. (defaults to 10)
- Retries number (retry_no), in seconds (defaults to 4).
- Retry timeout (retry_timeout) in seconds (defaults to 2).
Please note, that you have to configure those parameters by this exact order.
i.e. you cannot set Debug to true, without configuring all of the previous parameters as well.
@ -98,7 +100,9 @@ LOGGING = {
'formatter': 'logzioFormat',
'token': '<<LOGZIO-TOKEN>>',
'logs_drain_timeout': 5,
'url': 'https://<<LOGZIO-URL>>:8071'
'url': 'https://<<LOGZIO-URL>>:8071',
'retries_no': 4,
'retry_timeout': 2,
}
},
'loggers': {
@ -209,16 +213,20 @@ LOGGING = {
Please note that if you are using `python 3.8` it is preferred to use the `logging.config.dictConfig` method, as mentioned in [python's documentation](https://docs.python.org/3/library/logging.config.html#configuration-file-format).
## Release Notes
- 3.1.0
- Bug fixes
- Retry number and timeout is now configurable
- 3.0.0
- Deprecated `python2.7` & `python3.4`
- Changed log levels on `_flush_queue()` method (@hilsenrat)
<details>
<summary markdown="span"> Expand to check old versions </summary>
- 2.0.15
- Added flusher decorator for serverless platforms(@mcmasty)
- Add support for `python3.7` and `python3.8`
<details>
<summary markdown="span"> Expand to check old versions </summary>
- 2.0.13
- Add support for `pypy` and `pypy3`(@rudaporto-olx)
- Add timeout for requests.post() (@oseemann)


+ 1
- 1
setup.py View File

@ -3,7 +3,7 @@
from setuptools import setup, find_packages
setup(
name="logzio-python-handler",
version='3.0.0',
version='3.1.0',
description="Logging handler to send logs to your Logz.io account with bulk SSL",
keywords="logging handler logz.io bulk https",
author="roiravhon",


Loading…
Cancel
Save