Skip to content

welltime/graylog-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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

or add

"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,                    
                ],
            ],
        ],
    ],
    ...
];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages