behnamhosseini / LogToJson by behnamhoseyni

conver laravel logs format to json
26
2
2
Package Data
Maintainer Username: behnamhoseyni
Maintainer Contact: behnamtakta71@gmail.com (behnamhosseini)
Package Create Date: 2021-07-27
Package Last Update: 2022-05-22
Language: PHP
License: Unknown
Last Refreshed: 2024-11-23 03:02:47
Package Statistics
Total Downloads: 26
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Laravel log to json

Author

Description

Convert Laravel logs to json

⬇️ Installation

You can install the package via composer:

composer require behnamhosseini/log-to-json

You may also publish config file:

php artisan vendor:publish --provider=Behnamhosseini\LogToJson\Providers\LogServiceProvider

Usage

All you have to do is change a line of code in (app\Exceptions\Handler.php) and then you can implement the settings from the configuration file you published (config / logToJson).

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

to

use Behnamhosseini\LogToJson\Handler as ExceptionHandler;