2017 © Pedro Peláez
 

library log-vendor

image

kemerovo-man/log-vendor

  • Wednesday, June 13, 2018
  • by kemerovo_man
  • Repository
  • 1 Watchers
  • 0 Stars
  • 91 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

Лог вендор для Laravel 5.7, 5.8

Добавляет в проект возможность логировать сразу в текстовый файл и в json, и читать json логи в браузере. Настроики в config/log.php Добавляет в проект роуты: /logs - список логов, /logs/{file} - посмотреть json лог, (*1)

Установка

  1. выполнить
require kemerovo-man/log-vendor

для Laravel 5.7, (*2)

    "require": {
        "kemerovo-man/log-vendor": "5.7.*"
    }

для Laravel 5.8, (*3)

    "require": {
        "kemerovo-man/log-vendor": "5.8.*"
    }
  1. добавить в app.conf
    'providers' => [
        KemerovoMan\LogVendor\LogVendorServiceProvider::class
    ]
  1. php artisan vendor:publish, (*4)

  2. настроить config/log.php, (*5)

можно закрыть роуты /logs, /logs/{file} мидлварами, (*6)

Например:, (*7)

'middleware' => ['web', 'auth']
  1. Написать конфиг для всех логов и добавить методы на фасаде, (*8)

  2. Можно изменить Exceptions/Handler.php, (*9)

    public function report(Exception $exception)
    {
        if ($this->shouldntReport($exception)) {
            return;
        }
        parent::report($exception);
        \Log::laravelReport($exception);
    }

The Versions

13/06 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

13/06 2018

0.0.11

0.0.11.0

  Sources   Download

The Requires

 

13/06 2018

0.0.10

0.0.10.0

  Sources   Download

The Requires

 

13/06 2018

0.0.9

0.0.9.0

  Sources   Download

The Requires

 

13/06 2018

0.0.8

0.0.8.0

  Sources   Download

The Requires

 

08/06 2018

0.0.7

0.0.7.0

  Sources   Download

The Requires

 

07/06 2018

0.0.6

0.0.6.0

  Sources   Download

The Requires

 

07/06 2018

0.0.5

0.0.5.0

  Sources   Download

The Requires

 

07/06 2018

0.0.4

0.0.4.0

  Sources   Download

The Requires

 

07/06 2018

0.0.3

0.0.3.0

  Sources   Download

The Requires

 

05/06 2018

0.0.2

0.0.2.0

  Sources   Download

The Requires

 

05/06 2018

0.0.1

0.0.1.0

  Sources   Download

The Requires