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.

Files for nameko_logstash, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size nameko_logstash-0.1.tar.gz (1.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page