Skip to main content

UNKNOWN

Project description

# Nameko - Logstash Depedency Injector



## Installation

```bash
git clone https://github.com/jdsolucoes/nameko-logstash.git
cd nameko-logstash
python setup.py install
```



## Configuration

Just add a LOGSTASH entry in your name config.yaml file, like this:

```yaml
LOGSTASH:
HOST: logstash_server.abc.xyz
PORT: 5959
LOG_LEVEL: INFO
```



## Usage

just add the LogstashDependency in your service, like this:

```python
from nameko.rpc import rpc
from nameko_logstash import LogstashDependency


class MyService(object):

name = 'dumb_service'
log = LogstashDependency()

@rpc
def ping(self):
self.log.info('Ping received.')
return 'pong'
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nameko_logstash-0.1.tar.gz (1.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page