hedii / laravel-gelf-logger

A package to send gelf logs to a gelf compatible backend like graylog
MIT License
125 stars 33 forks source link

Trait 'Illuminate\Log\ParsesLogConfiguration' not found #5

Closed tumichnix closed 5 years ago

tumichnix commented 5 years ago

Hi,

I try to use your package with Laravel 5.6. If I call "Log:channel('gelf')->:critical('Foobar');" I am getting "Symfony\Component\Debug\Exception\FatalErrorException : Trait 'Illuminate\Log\ParsesLogConfiguration' not found".

Stacktrace:

  1   Symfony\Component\Debug\Exception\FatalErrorException::__construct()
      /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:137

  2   Illuminate\Foundation\Bootstrap\HandleExceptions::fatalExceptionFromError()
      /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:123
hedii commented 5 years ago

Log:channel('gelf')->:critical('Foobar');

You have a typo in your snippet: semicolon before "critical"

hedii commented 5 years ago

Thanks for reporting, please run composer update.