Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bankiru/monolog-logstash
ZeroMQ Logstash transport for Monolog
https://github.com/bankiru/monolog-logstash
Last synced: about 1 month ago
JSON representation
ZeroMQ Logstash transport for Monolog
- Host: GitHub
- URL: https://github.com/bankiru/monolog-logstash
- Owner: bankiru
- Created: 2014-10-30T14:14:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-03T11:58:45.000Z (about 2 years ago)
- Last Synced: 2023-08-21T08:09:24.183Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Monolog Logstash - logging to [Logstash](http://logstash.net/) [![Build Status](https://travis-ci.org/bankiru/monolog-logstash.svg)](https://travis-ci.org/bankiru/monolog-logstash) [![Coverage Status](https://coveralls.io/repos/bankiru/monolog-logstash/badge.png)](https://coveralls.io/r/bankiru/monolog-logstash) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bankiru/monolog-logstash/badges/quality-score.png)](https://scrutinizer-ci.com/g/bankiru/monolog-logstash/) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/3cd492d5-7086-415c-aea9-ce8458c85f70/mini.png)](https://insight.sensiolabs.com/projects/3cd492d5-7086-415c-aea9-ce8458c85f70)
========[![Latest Stable Version](https://poser.pugx.org/bankiru/monolog-logstash/v/stable.svg)](https://packagist.org/packages/bankiru/monolog-logstash)
[![Total Downloads](https://poser.pugx.org/bankiru/monolog-logstash/downloads.svg)](https://packagist.org/packages/bankiru/monolog-logstash)
[![Latest Unstable Version](https://poser.pugx.org/bankiru/monolog-logstash/v/unstable.svg)](https://packagist.org/packages/bankiru/monolog-logstash)
[![License](https://poser.pugx.org/bankiru/monolog-logstash/license.svg)](https://packagist.org/packages/bankiru/monolog-logstash)## Installing
### Composer
```
"require": {
"bankiru/monolog-logstash": "~0.1.0"
}
```### Github
Releases available on [Github](https://github.com/bankiru/monolog-logstash).
## Documentation
Currently implemented:
* [ZMQ transport](http://logstash.net/docs/1.4.2/inputs/zeromq)
* [Lumberjack transport](http://logstash.net/docs/1.4.2/inputs/lumberjack)### ZMQ transport
```
setFormatter(new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES)); // optional but recommended$log = new Logger('name');
$log->pushHandler($zmqHandler);
```### Lumberjack transport
```
init(
'127.0.0.1',
2323,
'path/to/certificate.crt',
[
'window_size' => 5000,
]
);
$lumberjackHandler->setFormatter(new LumberjackFormatter('my_app_name'));$log = new Logger('name');
$log->pushHandler($lumberjackHandler);
```