diff --git a/CHANGELOG.md b/CHANGELOG.md index c9ad3ec..90fe539 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +# tag:0.3.0 / 2019-04-19 +- Fixes issue 11 + # tag:0.2.6 / 2019-03-14 - Fixes issue 8 diff --git a/README.rst b/README.rst index bd8ddef..3a48829 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ Current stable version: :: - 0.2.6 + 0.3.0 Installation: ~~~~~~~~~~~~~ @@ -70,6 +70,13 @@ Usage: logger.debug("Debug logs") logger.info("Info logs") +Development installation +^^^^^^^^^^^^^^^^^^^^^^^^^ +:: + + pip install -e .[dev] + + Important arguments to ``setup_logger`` function: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/examples/simple_gelf_logger.py b/examples/simple_gelf_logger.py index 7ce8d89..18087a0 100644 --- a/examples/simple_gelf_logger.py +++ b/examples/simple_gelf_logger.py @@ -5,17 +5,19 @@ import logging +from graypy import GELFUDPHandler + from pylogging import HandlerType, setup_logger -from graypy import GELFHandler + logger = logging.getLogger(__name__) # If want to add extra fields. # logger = logging.LoggerAdapter(logger, {"app_name": "test-service"}) if __name__ == '__main__': - gelf_handler = GELFHandler(host="elk.recogizer.net", - port=12201, - level_names=True, - debugging_fields=False) + gelf_handler = GELFUDPHandler(host="elk.recogizer.net", + port=12201, + level_names=True, + debugging_fields=False) setup_logger(log_directory='./logs', file_handler_type=HandlerType.TIME_ROTATING_FILE_HANDLER, diff --git a/pylogging/__init__.py b/pylogging/__init__.py index e1ca53f..782757a 100644 --- a/pylogging/__init__.py +++ b/pylogging/__init__.py @@ -6,4 +6,4 @@ from .handler_types import HandlerType from .formatters import Formatters -__version__ = '0.2.6' +__version__ = '0.3.0' diff --git a/setup.py b/setup.py index f33424a..73c5870 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import re +from codecs import open # To use a consistent encoding from os import path -from codecs import open # To use a consistent encoding from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) @@ -28,12 +28,13 @@ def get_version(): include_package_data=True, license='MIT', zip_safe=False, - install_requires=['future', 'requests-futures', 'ujson', 'graypy'], + install_requires=['future', 'requests-futures', 'ujson==1.35', 'graypy==1.1.2'], extras_require={ 'dev': [ 'pytest', 'pytest-pep8', 'pytest-cov', + 'python-language-server[all]' ] }, classifiers=[