2017 © Pedro Peláez
 

yii2-extension graylog-target

Graylog2 log target for Yii2

image

welltime/graylog-target

Graylog2 log target for Yii2

  • Thursday, October 16, 2014
  • by e45456
  • Repository
  • 14 Watchers
  • 1 Stars
  • 198 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Installation

php composer.phar require "welltime/graylog-target" "*"

or add, (*1)

"welltime/graylog-target" : "*"

Usage

<?php
return [
    ...
    'components' => [
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                'graylog' => [
                    'class' => 'welltime\graylog\GraylogTarget',
                    'levels' => ['error', 'warning', 'info'],
                    'categories' => ['application'],
                    'host' => '127.0.0.1',
                    'port' => 12201,
                    'source' => 'hostname',
                    'addCategory' => true,                    
                    'addUserId' => true,
                    'addLoggerId' => true,                    
                    'addFile' => true,                    
                ],
            ],
        ],
    ],
    ...
];

The Versions

16/10 2014

dev-master

9999999-dev

Graylog2 log target for Yii2

  Sources   Download

The Requires

 

log extension yii2 graylog2 graylog gelf log target