Download the PHP package devgroup/yii2-graylog-target without Composer
On this page you can find all versions of the php package devgroup/yii2-graylog-target. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-graylog-target
yii2-graylog-target
Graylog2 log target for Yii2 framework applications
Installation
For installation the yii2-graylog-target library in your projects as composer dependency, run the command:
php composer.phar require "devgroup/yii2-graylog-target:*"
... or just add to composer.json file the following line:
Configuration
Configure from config array
Available config parameters:
Param key | Optional | Default value | Description |
---|---|---|---|
transport |
+ | Gelf\Transport\HttpTransport | Transport config array for publishing a message to Graylog2 server |
publisher |
+ | Gelf\Publisher | Publisher config array |
messageValidator |
+ | Gelf\MessageValidator | Message validator class for publisher |
container |
+ | \Yii::$container | DI container |
version |
+ | 1.1 | GELF spec version |
appName |
+ | ID of the application | Category name for log message |
Usage
-
Sent additional data:
-
Sent exception:
- Sent short message:
Tests
Tests was placed int the test directory. Tests can be running by the command:
php composer.phar exec codecept run
Tests with different php versions with docker:
-
PHP v5.6
docker run -it --rm --name php56-for-grayii-tests -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:5.6-cli php vendor/bin/codecept run
-
PHP v7.0
docker run -it --rm --name php70-for-grayii-tests -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:7.0-cli php vendor/bin/codecept run
-
HHVM
docker run -it --rm --name hhvm-for-grayii-tests -v "$PWD":/usr/src/myapp -w /usr/src/myapp diegomarangoni/hhvm:cli hhvm vendor/bin/codecept run
All versions of yii2-graylog-target with dependencies
yiisoft/yii2 Version ~2.0
graylog2/gelf-php Version ~1.5
psr/log Version ~1.0.2