Skip to content

The-Hasanov/laravel-gelf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Gelf driver

laravel-gelf graylog2/gelf-php implementation for laravel framework 5.7+

Installation

composer install

$ composer require chameleon/laravel-gelf

Config

config/logging.php

 'graylog' => [
     'driver'     => 'laravel-gelf',
     'level'      => 'debug',
     'facility'   => 'laravel',
    //'formatter' => \Monolog\Formatter\GelfMessageFormatter::class,
     'connection' => [
         'type' => 'udp', // or tcp
         'host' => '127.0.0.1'
         'port' => 12201
     ],
     //additional fields
     'additional' => [
         'from_php' => true
     ]
 ],

About

graylog2/gelf-php implementation for laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages