Skip to content

Commit

Permalink
Merge pull request #12 from ansrivas/develop
Browse files Browse the repository at this point in the history
release 0.3.0
  • Loading branch information
ansrivas authored Apr 19, 2019
2 parents 44e5271 + 46cc69b commit 9cb1266
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Current stable version:

::

0.2.6
0.3.0

Installation:
~~~~~~~~~~~~~
Expand Down Expand Up @@ -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:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
12 changes: 7 additions & 5 deletions examples/simple_gelf_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pylogging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from .handler_types import HandlerType
from .formatters import Formatters

__version__ = '0.2.6'
__version__ = '0.3.0'
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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__))
Expand All @@ -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=[
Expand Down

0 comments on commit 9cb1266

Please sign in to comment.