Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.Python
bin/
include/
lib/
share/
src/
*.swp
*.swo
*.pyc
*.pyo
/*.egg-info
/.tox
/build
/dist
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ This library is distributed as 'fluent-logger' python package. Please execute th

$ pip install fluent-logger

On Python 2.5, you have to install 'simplejson' in addition.

## Configuration

Fluent daemon must be lauched with the following configuration:
Expand Down
6 changes: 5 additions & 1 deletion fluent/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import msgpack
import socket
import threading
import json

try:
import json
except ImportError:
import simplejson as json

from fluent import sender

Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/python

from distutils.core import setup
from os import path

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

README = path.abspath(path.join(path.dirname(__file__), 'README.md'))
desc = 'A Python logging handler for Fluentd event collector'

Expand All @@ -24,5 +28,6 @@
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
]
],
test_suite='tests'
)
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tox]
envlist = py25, py26, py27

[testenv]
commands=python setup.py test

[testenv:py25]
deps = simplejson

[testenv:py26]

[testenv:py27]