chameleon/laravel-gelf

There is no license information available for the latest version (0.3.2) of this package.

Laravel Gelf

Installs: 2 264

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 3

Open Issues: 1

pkg:composer/chameleon/laravel-gelf

0.3.2 2022-05-25 18:07 UTC

This package is auto-updated.

Last update: 2025-09-26 01:08:11 UTC


README

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
     ]
 ],